Skip to content

gitlint: ignore body lines that are footnotes #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .gitlint
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ ignore-merge-commits=true
# Enable debug mode (prints more output). Disabled by default.
# debug=true

# Enable search regex and remove warning message.
regex-style-search=true

# Enable community contributed rules
# See http://jorisroovers.github.io/gitlint/contrib_rules for details
contrib=contrib-body-requires-signed-off-by
Expand Down Expand Up @@ -106,11 +109,16 @@ regex=^.{2,32}: .*
# Use 'all' to ignore all rules
# ignore=T1,body-min-length

# [ignore-body-lines]
[ignore-body-lines]
# Ignore certain lines in a commit body that match a regex.
# E.g. Ignore all lines that start with 'Co-Authored-By'
# regex=^Co-Authored-By

# ignore lines that are "footnotes", that start like `[1]: ` or `[2]: ` and so on
# this will make it easy to put long urls in commit messages without
# triggering gitlint body rules
regex=^\[[0-9]+\]:? +

# This is a contrib rule - a community contributed rule. These are disabled by default.
# You need to explicitly enable them one-by-one by adding them to the "contrib" option
# under [general] section above.
Expand Down