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. |
Carles Cufi | 1b8f5e3 | 2022-01-10 11:51:52 +0100 | [diff] [blame] | 7 | ignore-merge-commits=false |
| 8 | ignore-revert-commits=false |
| 9 | ignore-fixup-commits=false |
| 10 | ignore-squash-commits=false |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 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=scripts/gitlint |
| 17 | |
Anas Nashif | 87766a2 | 2017-08-08 08:36:01 -0400 | [diff] [blame] | 18 | [title-max-length-no-revert] |
Anas Nashif | 3085ce0 | 2019-05-29 08:43:36 -0400 | [diff] [blame] | 19 | line-length=75 |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 20 | |
Anas Nashif | 2dd5cef | 2018-01-10 19:12:00 -0500 | [diff] [blame] | 21 | [body-min-line-count] |
| 22 | min-line-count=1 |
| 23 | |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 24 | [body-max-line-count] |
| 25 | max-line-count=200 |
| 26 | |
Anas Nashif | 3c27c46 | 2017-05-05 19:37:52 -0400 | [diff] [blame] | 27 | [title-starts-with-subsystem] |
Anas Nashif | 8d84f92 | 2018-11-21 23:08:25 -0500 | [diff] [blame] | 28 | regex = ^(?!subsys:)(([^:]+):)(\s([^:]+):)*\s(.+)$ |
Anas Nashif | 3c27c46 | 2017-05-05 19:37:52 -0400 | [diff] [blame] | 29 | |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 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. |
David B. Kinder | 2541f87 | 2017-09-15 11:08:54 -0700 | [diff] [blame] | 34 | words=wip |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 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 | |
Anas Nashif | b520075 | 2017-06-06 08:50:11 -0400 | [diff] [blame] | 43 | [max-line-length-with-exceptions] |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 44 | # B1 = body-max-line-length |
Ederson de Souza | 551b12b | 2021-11-30 11:01:23 -0800 | [diff] [blame] | 45 | line-length=75 |
Anas Nashif | a35378e | 2017-04-22 11:59:30 -0400 | [diff] [blame] | 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 |