jorisroovers / gitlint

Linting for your git commit messages
http://jorisroovers.github.io/gitlint
MIT License
806 stars 99 forks source link

[QUESTION] Is it possible to check for the total commit message length instead of just line length? #393

Closed ericriff closed 1 year ago

ericriff commented 1 year ago

We recently ended up with an automated commit with 61K lines of text. Looking to prevent that from happening again, I came across this wonderful tool.

I see that there are options to limit the title length and line length, but I don't see if it is possible to check for the total length of the commit message. Is this possible?

Thanks!

Eric.

sigmavirus24 commented 1 year ago

You could do that with your own -defined rule: https://jorisroovers.com/gitlint/user_defined_rules/

ericriff commented 1 year ago

It looks like that's what I need. Thanks.

Awesome tool BTW.