This repository has been archived by the owner on May 19, 2024. It is now read-only.
forked from chezmoi-sh/atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.commitlintrc.yaml
163 lines (163 loc) · 4.56 KB
/
.commitlintrc.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
# Copyright 2024
#
# Everyone is permitted to copy, distribute, modify, merge, sell, publish,
# sublicense or whatever the fuck they want with this software but at their
# OWN RISK.
# The author has absolutely no fucking clue what the code in this project
# does. It might just fucking work or not, there is no third option.
#
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# ---
# trunk-ignore-all(yamllint/line-length): rules are necessarily long here
parserPreset:
parserOpts:
headerPattern: ^(?<type>.+?) \((?<scope>.+?)\)!?\:\s(?<subject>(?:(?!#).)*(?:(?!\s).))(?:\s\(?(?<references>#\d*)\)?)?$
breakingHeaderPattern: ^(?<type>.+?) \((?<scope>.+?)\)!\:\s(?<subject>(?:(?!#).)*(?:(?!\s).))(?:\s\(?(?<references>#\d*)\)?)?$
headerCorrespondence:
- type
- scope
- subject
- references
rules:
# NOTE: these rules are disabled because commitlint don't handle
# properly `Signed-off-by: ` without body
body-full-stop: [0, always, .]
body-leading-blank: [0, always]
# NOTE: empty body is allowed
body-empty: [0, always]
body-max-length: [2, always, Infinity]
body-max-line-length: [2, always, 80]
body-min-length: [2, always, 0]
body-case: [2, always, sentence-case]
footer-leading-blank: [2, always]
footer-empty: [2, always]
footer-max-length: [2, always, Infinity]
footer-max-line-length: [2, always, 80]
footer-min-length: [2, always, 0]
header-case: [2, always, sentence-case]
header-full-stop: [2, never, .]
header-max-length: [2, always, 100]
header-min-length: [2, always, 0]
header-trim: [2, always]
# NOTE: no references are allowed
references-empty: [0, never]
scope-enum:
- 2 # considered as an error
- always
- - apps
- apps-adguardhome
- apps-alpine
- apps-authelia
- apps-autoheal
- apps-caddy
- apps-gatus
- apps-homer
- apps-homepage
- apps-tailscale
- apps-yaldap
- dependencies
- docs
- gh-commitlint
- gh-config
- gh-renovate
- gh-taskfile
- gh-trunk
- gh-workflows
- infra-live
- infra-modules
scope-case: [2, always, lower-case]
scope-empty: [2, never]
scope-max-length: [2, always, Infinity]
scope-min-length: [2, always, 0]
subject-case: [2, always, sentence-case]
subject-empty: [2, never]
subject-full-stop: [2, never, .]
subject-max-length: [2, always, 100]
subject-min-length: [2, always, 0]
# NOTE: exclamation mark is allowed to signal a breaking change
subject-exclamation-mark: [0, never]
type-enum:
- 2 # considered as an error
- always
- - ":adhesive_bandage:"
- ":alembic:"
- ":alien:"
- ":ambulance:"
- ":arrow_down:"
- ":arrow_up:"
- ":art:"
- ":beers:"
- ":bento:"
- ":bookmark:"
- ":boom:"
- ":bricks:"
- ":bug:"
- ":building_construction:"
- ":bulb:"
- ":busts_in_silhouette:"
- ":camera_flash:"
- ":card_file_box:"
- ":chart_with_upwards_trend:"
- ":children_crossing:"
- ":closed_lock_with_key:"
- ":clown_face:"
- ":coffin:"
- ":construction:"
- ":construction_worker:"
- ":dizzy:"
- ":egg:"
- ":fire:"
- ":globe_with_meridians:"
- ":goal_net:"
- ":green_heart:"
- ":hammer:"
- ":heavy_minus_sign:"
- ":heavy_plus_sign:"
- ":iphone:"
- ":label:"
- ":lipstick:"
- ":lock:"
- ":loud_sound:"
- ":mag:"
- ":memo:"
- ":money_with_wings:"
- ":monocle_face:"
- ":mute:"
- ":necktie:"
- ":package:"
- ":page_facing_up:"
- ":passport_control:"
- ":pencil2:"
- ":poop:"
- ":pushpin:"
- ":recycle:"
- ":rewind:"
- ":rocket:"
- ":rotating_light:"
- ":safety_vest:"
- ":see_no_evil:"
- ":seedling:"
- ":sparkles:"
- ":speech_balloon:"
- ":stethoscope:"
- ":tada:"
- ":technologist:"
- ":test_tube:"
- ":thread:"
- ":triangular_flag_on_post:"
- ":truck:"
- ":twisted_rightwards_arrows:"
- ":wastebasket:"
- ":wheelchair:"
- ":white_check_mark:"
- ":wrench:"
- ":zap:"
type-case: [2, always, lower-case]
type-empty: [2, never]
type-max-length: [2, always, Infinity]
type-min-length: [2, always, 0]
signed-off-by: [2, always, "Signed-off-by: "]