1 # All these sections are optional, edit this file as you like.
3 # Ignore certain rules, you can reference them by their id or by their full
5 # ignore=title-trailing-punctuation, T3
7 # verbosity should be a value between 1 and 3, the command line -v flags take
11 # By default gitlint will ignore merge commits. Set to 'false' to disable.
12 # ignore-merge-commits=true
14 # By default gitlint will ignore fixup commits. Set to 'false' to disable.
15 # ignore-fixup-commits=true
17 # By default gitlint will ignore squash commits. Set to 'false' to disable.
18 # ignore-squash-commits=true
20 # Enable debug mode (prints more output). Disabled by default.
23 # Set the extra-path where gitlint will search for user defined rules
24 # See http://jorisroovers.github.io/gitlint/user_defined_rules for details
25 # extra-path=examples/
27 # contrib=contrib-title-conventional-commits,contrib-body-requires-signed-off-by
28 contrib=contrib-body-requires-signed-off-by
33 # [title-must-not-contain-word]
34 # Comma-separated list of words that should not occur in the title. Matching is
35 # case insensitive. It's fine if the keyword occurs as part of a larger word
36 # (so "WIPING" will not cause a violation, but "WIP: my title" will.
40 # python like regex (https://docs.python.org/2/library/re.html) that the
41 # commit-msg title must be matched to.
42 # Note that the regex can contradict with other rules if not used correctly
43 # (e.g. title-must-not-contain-word).
47 # B1 = body-max-line-length
54 # Whether to ignore this rule on merge commits (which typically only have a title)
56 # ignore-merge-commits=false
58 # [body-changed-file-mention]
59 # List of files that need to be explicitly mentioned in the body when they are
60 # changed This is useful for when developers often erroneously edit certain
61 # files or git submodules. By specifying this rule, developers can only change
62 # the file when they explicitly reference it in the commit message.
63 # files=gitlint/rules.py,README.md
65 # [author-valid-email]
66 # python like regex (https://docs.python.org/2/library/re.html) that the
67 # commit author email address should be matched to
68 # For example, use the following regex if you only want to allow email
69 # addresses from foo.com
73 # Ignore certain rules for commits of which the title matches a regex
74 # E.g. Match commit titles that start with "Release"
77 # Ignore certain rules, you can reference them by their id or by their full name
78 # Use 'all' to ignore all rules
79 # ignore=T1,body-min-length
82 # Ignore certain rules for commits of which the body has a line that matches a
84 # E.g. Match bodies that have a line that contain "release"
85 # regex=(.*)release(.*)
87 # Ignore certain rules, you can reference them by their id or by their full name
88 # Use 'all' to ignore all rules
89 # ignore=T1,body-min-length
91 # Enable Conventional Commit subject line enforcement
92 # https://www.conventionalcommits.org/en/v1.0.0/
94 # Since we want all subjects to be well formed, enforce the topics
95 # to the following (fairly standard) topics and require them to be Mixed Case
96 # [contrib-title-conventional-commits]
97 # types=Fix,Feat,Chore,Docs,Style,Refactor,Perf,Test,Revert,CI,Build