gitsnitch 0.3.4

Lints your Git commit history against a declarative ruleset
1
2
3
4
5
6
7
8
9
10
11
12
[[assertions]]
alias = "preset_title_body_separator"
description = "Require a title line followed by exactly one blank separator line before the body"
banner = "Commit message must use title, blank line, then body."
hint = "Use: git commit -m 'Title' -m 'Body text'"
severity = 40

[assertions.must_satisfy]
[assertions.must_satisfy.condition]
type = "msg_match_any"
mode = "raw"
patterns = ['(?s)^[^\n]+\n\n\S.*']