Giter Site home page Giter Site logo

welpo / git-sumi Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 9.03 MB

The non-opinionated Rust-based commit message linter.

Home Page: https://sumi.rs/

License: Apache License 2.0

Shell 3.48% Rust 88.09% JavaScript 6.29% CSS 2.15%
commit-messages conventional-commits conventions lint linter rust non-opinionated conventional-commits-parser cli git

git-sumi's Introduction

git-sumi's People

Contributors

renovate[bot] avatar welpo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

git-sumi's Issues

`header_case` rule

Feature Request

Summary

A rule like description_case but for the header, where can specify a specific case for the first letter in the header

Motivation

This will help to make the change log and the log history looks better, same as description_case

Detailed Description

This should respect the conventional commits header, which in this case it will check the header not the type

Contributing request

I can work on this if it's accepted

Detect imperatives with prefixes

Feature Request

Summary

git-sumi should detect imperatives with prefixes. For example, "write" is in the list of non-imperative verbs (as "written", "wrote"), but "rewrite" is not.

Motivation

It would improve non-imperative-verb detection.

Detailed Description

The logic to detect imperative verbs should not only match the first word against the hashset, but check whether it matches a list of prefixes + a word in the list.

As an initial list of prefixes, we could consider:

  • re (reuse, reindex)
  • un (undelete, unskip)
  • pre (prebuilt, preinitialize)

Additional Context

It's probably a good idea to check for:

  • Base verb (this is implemented)
  • Prefix + dash + verb
  • Prefix + verb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.