Skip to content

Commit

Permalink
gitlint: Stop ignoring merge, revert, fixup and squash commits
Browse files Browse the repository at this point in the history
Some special commit types were being ignored by Gitlint, allowing
commits that did not abide by our formatting rules to slip through the
checks. Instead, enforce them on all commit types.

Signed-off-by: Carles Cufi <[email protected]>
  • Loading branch information
carlescufi authored and nashif committed Jan 10, 2022
1 parent 190c9ba commit 1b8f5e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitlint
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ ignore=title-trailing-punctuation, T3, title-max-length, T1, body-hard-tab, B3,
# verbosity should be a value between 1 and 3, the commandline -v flags take precedence over this
verbosity = 3
# By default gitlint will ignore merge commits. Set to 'false' to disable.
ignore-merge-commits=true
ignore-merge-commits=false
ignore-revert-commits=false
ignore-fixup-commits=false
ignore-squash-commits=false
# Enable debug mode (prints more output). Disabled by default
debug = false

Expand Down

0 comments on commit 1b8f5e3

Please sign in to comment.