jorisroovers / gitlint

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

gitlint: ignore dependabot Co-authored-by lines #373

Closed jorisroovers closed 1 year ago

jorisroovers commented 1 year ago

Dependabot tends to generate "Co-authored-by" lines that exceed the default 80 char limit. Ignore those lines in commit messages.

jorisroovers commented 1 year ago

Need to merge #374 first and then rebase this

webknjaz commented 1 year ago

Talking about Co-Authored-By:, it could be useful for M1: author-valid-email to also check those trailers and the committer? You can extract these via something like git show --no-patch --pretty='format:%(trailers:key=Co-Authored-By,separator=%x0A)%x0A%an <%ae>%x0A%cn <%ce>' HEAD.