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
32 # [title-must-not-contain-word]
33 # Comma-separated list of words that should not occur in the title. Matching is
34 # case insensitive. It's fine if the keyword occurs as part of a larger word
35 # (so "WIPING" will not cause a violation, but "WIP: my title" will.
39 # python like regex (https://docs.python.org/2/library/re.html) that the
40 # commit-msg title must be matched to.
41 # Note that the regex can contradict with other rules if not used correctly
42 # (e.g. title-must-not-contain-word).
46 # B1 = body-max-line-length
53 # Whether to ignore this rule on merge commits (which typically only have a title)
55 # ignore-merge-commits=false
57 # [body-changed-file-mention]
58 # List of files that need to be explicitly mentioned in the body when they are
59 # changed This is useful for when developers often erroneously edit certain
60 # files or git submodules. By specifying this rule, developers can only change
61 # the file when they explicitly reference it in the commit message.
62 # files=gitlint/rules.py,README.md
64 # [author-valid-email]
65 # python like regex (https://docs.python.org/2/library/re.html) that the
66 # commit author email address should be matched to
67 # For example, use the following regex if you only want to allow email
68 # addresses from foo.com
72 # Ignore certain rules for commits of which the title matches a regex
73 # E.g. Match commit titles that start with "Release"
76 # Ignore certain rules, you can reference them by their id or by their full name
77 # Use 'all' to ignore all rules
78 # ignore=T1,body-min-length
81 # Ignore certain rules for commits of which the body has a line that matches a
83 # E.g. Match bodies that have a line that contain "release"
84 # regex=(.*)release(.*)
86 # Ignore certain rules, you can reference them by their id or by their full name
87 # Use 'all' to ignore all rules
88 # ignore=T1,body-min-length
90 # Enable Conventional Commit subject line enforcement
91 # https://www.conventionalcommits.org/en/v1.0.0/
93 # Since we want all subjects to be well formed, enforce the topics
94 # to the following (fairly standard) topics and require them to be Mixed Case
95 [contrib-title-conventional-commits]
96 types=Fix,Feat,Chore,Docs,Style,Refactor,Perf,Test,Revert,CI,Build