You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've discovered an unusual problem. We have folks creating commits with only a title, and gitlint isn't complaining. There's nothing in the .gitlint file to disable this check.
What I've found through testing is that a title followed by 2 or more blank lines passes gitlint even though the message contains no body.
Seems such a basic issue that I'm surprised it was never caught before. I think that's probably because git commit prunes trailing newlines (I believe by default).
In any case, I was able to reproduce this like so:
# These work as expectedecho"foo"| gitlint
echo"foo\n"| gitlint
# These don't, they're not showing the B6 ruleecho"foo\n\n"| gitlint
echo"foo\n\n\n"| gitlint
Will be double checking the fix in #179 shortly, but looks pretty good.
Bugfixes:
- Git commit message body with only new lines is not longer considered empty
by `body-is-missing` (#176)
- Added compatibility with `git commit -s` for
`contrib-requires-signed-off-by` rule (#178)
- Minor tweak to gitlint commit-hook output (#173)
- All dependencies have been upgraded to the latest available versions
- Minor doc fixes
Full Release details in CHANGELOG.md.
I've discovered an unusual problem. We have folks creating commits with only a title, and gitlint isn't complaining. There's nothing in the .gitlint file to disable this check.
What I've found through testing is that a title followed by 2 or more blank lines passes gitlint even though the message contains no body.
Here's an example with debug:
I updated to version 0.15.0 and had the same problem.
The text was updated successfully, but these errors were encountered: