|
| 1 | +# All these sections are optional, edit this file as you like. |
| 2 | +[general] |
| 3 | +ignore=title-trailing-punctuation, T3, title-max-length, T1, body-hard-tab, B3, B1 |
| 4 | +# verbosity should be a value between 1 and 3, the commandline -v flags take precedence over this |
| 5 | +verbosity = 3 |
| 6 | +# By default gitlint will ignore merge commits. Set to 'false' to disable. |
| 7 | +ignore-merge-commits=false |
| 8 | +ignore-revert-commits=false |
| 9 | +ignore-fixup-commits=false |
| 10 | +ignore-squash-commits=false |
| 11 | +# Enable debug mode (prints more output). Disabled by default |
| 12 | +debug = false |
| 13 | + |
| 14 | +# Set the extra-path where gitlint will search for user defined rules |
| 15 | +# See http://jorisroovers.github.io/gitlint/user_defined_rules for details |
| 16 | +extra-path=../zephyr/scripts/gitlint |
| 17 | + |
| 18 | +[title-max-length-no-revert] |
| 19 | +line-length=75 |
| 20 | + |
| 21 | +[body-min-line-count] |
| 22 | +min-line-count=1 |
| 23 | + |
| 24 | +[body-max-line-count] |
| 25 | +max-line-count=200 |
| 26 | + |
| 27 | +[title-starts-with-subsystem] |
| 28 | +regex = ^(?!subsys:)(([^:]+):)(\s([^:]+):)*\s(.+)$ |
| 29 | + |
| 30 | +[title-must-not-contain-word] |
| 31 | +# Comma-separated list of words that should not occur in the title. Matching is case |
| 32 | +# insensitive. It's fine if the keyword occurs as part of a larger word (so "WIPING" |
| 33 | +# will not cause a violation, but "WIP: my title" will. |
| 34 | +words=wip |
| 35 | + |
| 36 | +[title-match-regex] |
| 37 | +# python like regex (https://docs.python.org/2/library/re.html) that the |
| 38 | +# commit-msg title must be matched to. |
| 39 | +# Note that the regex can contradict with other rules if not used correctly |
| 40 | +# (e.g. title-must-not-contain-word). |
| 41 | +#regex=^US[0-9]* |
| 42 | + |
| 43 | +[max-line-length-with-exceptions] |
| 44 | +# B1 = body-max-line-length |
| 45 | +line-length=72 |
| 46 | + |
| 47 | +[body-min-length] |
| 48 | +min-length=3 |
| 49 | + |
| 50 | +[body-is-missing] |
| 51 | +# Whether to ignore this rule on merge commits (which typically only have a title) |
| 52 | +# default = True |
| 53 | +ignore-merge-commits=false |
| 54 | + |
| 55 | +[body-changed-file-mention] |
| 56 | +# List of files that need to be explicitly mentioned in the body when they are changed |
| 57 | +# This is useful for when developers often erroneously edit certain files or git submodules. |
| 58 | +# By specifying this rule, developers can only change the file when they explicitly reference |
| 59 | +# it in the commit message. |
| 60 | +#files=gitlint/rules.py,README.md |
0 commit comments