Skip to content

Commit 176067f

Browse files
committed
gitlint: Add regex to ignore some long lines.
This does not resolve issues for all previous commits where the B1 rule of long lines in the body would fail, but will allow some obvious common cases to pass. Inspired by jorisroovers/gitlint#255, this should cover at least lines starting with: - http or https [where URLs can be long] - Co-authored-by: [where emails/names can be long] The downside to this rule is that the line numbering is apparently offset, based on the gitlint documentation. (https://jorisroovers.com/gitlint/latest/ignoring_commits/)
1 parent 440a3fa commit 176067f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: .gitlint

+3
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ ignore=all
5555
# Ignore certain rules, you can reference them by their id or by their full name
5656
# Use 'all' to ignore all rules
5757
# ignore=T1,body-min-length
58+
59+
[ignore-body-lines]
60+
regex=^(Co-authored-by:| *https?://\S+$)

0 commit comments

Comments
 (0)