| 1 |
# Edit this file as you like. |
| 2 |
# |
| 3 |
# All these sections are optional. Each section with the exception of general represents |
| 4 |
# one rule and each key in it is an option for that specific rule. |
| 5 |
# |
| 6 |
# Rules and sections can be referenced by their full name or by id. For example |
| 7 |
# section "[body-max-line-length]" could be written as "[B1]". Full section names are |
| 8 |
# used in here for clarity. |
| 9 |
# Rule reference documentation: http://jorisroovers.github.io/gitlint/rules/ |
| 10 |
# |
| 11 |
# Note that this file is not exhaustive, it's just an example |
| 12 |
# Use 'gitlint generate-config' to generate a config file with all possible options |
| 13 |
[general] |
| 14 |
ignore=title-trailing-punctuation, T3 |
| 15 |
# verbosity should be a value between 1 and 3, the commandline -v flags take precedence over this |
| 16 |
verbosity = 2 |
| 17 |
# By default gitlint will ignore merge commits. Set to 'false' to disable. |
| 18 |
ignore-merge-commits=true |
| 19 |
# Enable debug mode (prints more output). Disabled by default |
| 20 |
debug = true |
| 21 |
|
| 22 |
# Set the extra-path where gitlint will search for user defined rules |
| 23 |
# See http://jorisroovers.github.io/gitlint/user_defined_rules for details |
| 24 |
# extra-path=examples/ |
| 25 |
|
| 26 |
[title-max-length] |
| 27 |
line-length=50 |
| 28 |
|
| 29 |
[title-must-not-contain-word] |
| 30 |
# Comma-separated list of words that should not occur in the title. Matching is case |
| 31 |
# insensitive. It's fine if the keyword occurs as part of a larger word (so "WIPING" |
| 32 |
# will not cause a violation, but "WIP: my title" will. |
| 33 |
words=wip,title |
| 34 |
|
| 35 |
[title-match-regex] |
| 36 |
# python like regex (https://docs.python.org/2/library/re.html) that the |
| 37 |
# commit-msg title must be matched to. |
| 38 |
# Note that the regex can contradict with other rules if not used correctly |
| 39 |
# (e.g. title-must-not-contain-word). |
| 40 |
regex=^US[0-9]* |
| 41 |
|
| 42 |
[body-max-line-length] |
| 43 |
line-length=72 |
| 44 |
|
| 45 |
[body-min-length] |
| 46 |
min-length=5 |
| 47 |
|
| 48 |
[body-is-missing] |
| 49 |
# Whether to ignore this rule on merge commits (which typically only have a title) |
| 50 |
# default = True |
| 51 |
ignore-merge-commits=false |
| 52 |
|
| 53 |
[body-changed-file-mention] |
| 54 |
# List of files that need to be explicitly mentioned in the body when they are changed |
| 55 |
# This is useful for when developers often erroneously edit certain files or git submodules. |
| 56 |
# By specifying this rule, developers can only change the file when they explicitly reference |
| 57 |
# it in the commit message. |
| 58 |
files=gitlint-core/gitlint/rules.py,README.md |