Skip to main content

Lintje 0.10.0: Giving co-authors credit

Lintje 0.10.0 is out now! This release adds support for co-authors and sign offs, ignoring revert commits and improved help output.

Co-authors and sign offs

When pairing together with someone on an issue there’s only one person that can commit the final changes. Still, you want to give your pairing partner credit for this change. For this you can use the “Co-authored-by” commit message trailer.

I’ve created commits with these co-author lines, only to find out they did not get any credit on GitHub. The co-author need to be at the end of the commit message for them to get credited. If you write another paragraph below the trailer line, the co-author does not get any credit.

Introducing the “MessageTrailerLine” rule: make sure your co-authors are always listed at the end of the commit message body, and get the credit they deserve.

The MessageTrailerLine also detects “Signed-off-by” and “Helped-by” trailer lines.

Ignoring revert commits

Reverting commits is something we do to undo previous mistakes. When running git revert SHA Git gives a pretty good commit message already, and often this message isn’t changed. This revert commit can easily break rules like SubjectLength, and I don’t think that should matter that much. From this version on revert commits are not validated by Lintje.

Improved output

Several rules have gotten improvements for the help output they print. They will give better suggestions to remove or move content from the subject to the message or what else to change in the commit.

Suggestions with additions are now colored green, with removals colored yellow. Errors highlights are still colored orange. Additions will also always use the plus symbol (+) instead of the caret (^).

Known issues

At this time the following issues are known:


Read all the changes in the changelog below.