forked from tarantool/tt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlint-precommit.ini
More file actions
48 lines (39 loc) · 1.47 KB
/
.gitlint-precommit.ini
File metadata and controls
48 lines (39 loc) · 1.47 KB
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
39
40
41
42
43
44
45
46
47
48
[general]
debug = true
regex-style-search = true
[ignore-by-title]
regex = ^build\(deps\):.*dependabot\[bot\]$
ignore = title-max-length,body-min-length
[ignore-by-author-name]
regex=^TarantoolBot(.*)
ignore=all
[title-min-length]
min-length=12
[title-max-length]
line-length = 50
[title-match-regex]
; Allows following subjects like:
; - "module: at least three words description"
; - "module1/module2: three words info"
; - "Release v1.2.3"
regex = ^(?:[\w\/-]+: (?:\S+ ){2,}\S+.*?|Release\s+v?\d+\.\d+\.\d)$
[body-min-length]
; Note: to allow almost empty commit body with single text: "Closes #123"
min-length=10
[body-max-line-length]
line-length = 72
[body-match-regex:reference_task_id]
; Task ID can be in digital format as "#123" (github task) or "ABC-123" (external task).
; NOTE: External task ID starts with letter, there should be no number sign (#) at the beginning.
; Allows following reference like:
; - Closes #123
; - Fixes #123
; - Related to #123
; - Part of #123
; - Needed for #123
regex = (?m)^(?:Closes|Fixes|Related to|Part of|Needed for) (?:(?:\w+/\w+)?#|[A-Z]+-)\d+$
; TODO: If required to let following markers: "See also #1234, TNTP-3456, ..." (TNTP-3108).
; https://www.tarantool.io/en/doc/latest/contributing/developer_guidelines/#how-to-write-a-commit-message
; Need solve how to enable both regexes at once. Now they works as AND rules, while we need here OR.
;? [body-match-regex:multiple_tasks]
;? regex = (?m)^See also (?:#(?:[A-Z]+-)?\d+(?:\b|[,;] ?| )){1,}$