# Gitlint config: https://jorisroovers.com/gitlint/configuration/

# Example of commit:
# Add checks to prevent inconsistent data
#
# Explanation, reasons, notes

[general]
ignore=body-is-missing
ignore-merge-commits=true
regex-style-search=True

[title-max-length]
line-length=50

[title-min-length]
min-length=3

# Make sure that commit title starts with uppercase letter
[title-match-regex]
regex=\A[A-Z]

[body-max-line-length]
line-length=79

[body-min-length]
min-length=1

# Ignore certain lines in a commit body that match a regex.
# E.g. Ignore all lines that start with 'Co-authored-By' or http(s) links
[ignore-body-lines]
regex=^(Co-authored-by|http)
