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