-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gitlint
38 lines (33 loc) · 1.1 KB
/
.gitlint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Available rules:
#
# T1: title-max-length
# T2: title-trailing-whitespace
# T3: title-trailing-punctuation (disabled)
# T4: title-hard-tab
# T5: title-must-not-contain-word (disabled)
# T6: title-leading-whitespace
# T7: title-match-regex
# B1: body-max-line-length (disabled)
# B2: body-trailing-whitespace
# B3: body-hard-tab
# B4: body-first-line-empty
# B5: body-min-length (disabled)
# B6: body-is-missing
# B7: body-changed-file-mention (disabled)
#
# See http://jorisroovers.github.io/gitlint/rules/ for a full description of the rules.
# See https://eclipse-score.github.io/score/process/guidance/git/index.html for our commit message guidelines.
# Ignore some default rules and enable regex style searching
[general]
ignore=T3,T5,B1,B5,B7
regex-style-search=true
# Maximum length of the title
[title-max-length]
line-length=72
[title-match-regex]
regex=^[a-z_-]+: .+$
# First line of the commit message body must be empty. (second line of the commit message)
[body-first-line-empty]
#Ignores the title if it starts with Revert or Merge
[ignore-by-title]
regex=(^Revert |^Merge )