crate-ci / committed

Nitpicking commit history since beabf39
Apache License 2.0
103 stars 7 forks source link

RFE: option to require non-capitalized subjects #408

Open scop opened 20 hours ago

scop commented 20 hours ago

Requiring commit subjects not to be capitalized is a common practice especially with conventional commit implementations. There does not seem to be a way to enforce this with committed, and it would be nice to have.

Setting subject_capitalized to false does not appear to result in capitalized subjects flagged as an error, it just does not require them to be capitalized then. Perhaps it could be changed to a tri-state option so that if not defined, no particular case is required; if true, capitalization required; if false, non-capitalization required.

Some references

epage commented 18 hours ago

I'm fine adding a check for non-capitalized subjects. I'd prefer to not make a breaking change in the configuration format though. I'd be open to other ideas.