-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
185 lines (185 loc) · 4.48 KB
/
Copy pathcommitlint.config.cjs
File metadata and controls
185 lines (185 loc) · 4.48 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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/**
* Conventional Commits 1.0.0 enforcement for Flowatch.
*
* The `scope-enum` allow-list below is sourced from the `THEMES` array in
* release.config.mjs — the same vocabulary semantic-release uses to bucket
* commits in the generated release notes (per ADR-011 + P-008). The two
* surfaces are kept in sync by scripts/release/check-commitlint-scopes.mjs
* (run that script after editing release.config.mjs THEMES).
*
* Do NOT bypass via `git commit --no-verify`. The hook gate exists so
* non-conforming commits never enter `develop` / `main`. If a commit must
* be force-merged, route via PR review with the maintainer's authorization.
*
* Why hardcoded (not dynamic-imported from release.config.mjs):
* release.config.mjs runs `execSync('gh issue list ...')` and `git rev-parse`
* at load time — importing it from this CJS would spawn those subprocesses
* on every `git commit`. The Task 2.4 helper detects drift in CI instead.
*/
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"scope-empty": [1, "never"],
"scope-enum": [
2,
"always",
[
// 🎨 Modelers (BPMN & DMN)
"modeler",
"modelers",
"bpmn",
"dmn",
"cmmn",
"palette",
"diagram",
// 🚀 Deployments & Definitions
"process",
"deployments",
"deployment",
"definitions",
"definition",
"repository",
// ▶️ Runtime, Tasks & Forms
"runtime",
"instances",
"instance",
"tasks",
"task",
"forms",
"form",
"variables",
"attachments",
"content",
// ⚙️ Jobs, Batches & Events
"jobs",
"job",
"batches",
"batch",
"event-subscriptions",
"events",
"event",
"dlq",
// 📊 History & Audit
"history",
"historic",
"audit",
"audit-log",
// 👥 Identity & Tenants
"identity",
"idm",
"users",
"user",
"groups",
"group",
"tenants",
"tenant",
"privileges",
// 🔍 API Inspector
"inspector",
"api-inspector",
"api-log",
// 🔐 Authentication
"auth",
"authn",
"authentication",
"oidc",
"sso",
"bearer",
"basic-auth",
// 🎭 Design System & Theming
"design-system",
"design",
"styles",
"styling",
"theme",
"theming",
"looks",
"density",
"accent",
"branding",
"logo",
"icons",
// 🧭 Routing & Navigation
"router",
"routing",
"routes",
"navigation",
"nav",
"sidebar",
"topbar",
"chrome",
// 🌐 Flowable REST contract
"api",
"request",
"rest",
"flowable-rest",
"bruno",
"compat",
// 🛡️ Quality Gates
"test",
"tests",
"vitest",
"playwright",
"e2e",
"coverage",
"lint",
"biome",
"typecheck",
// 🧱 Foundation & Build
"devops",
"docker",
"docker-compose",
"nginx",
"vite",
"build",
"tech-foundation",
"cleanup",
"bootstrap",
"pages",
"gh-pages",
// 🛠️ DevEx & Tooling
"claude",
"agents",
"agent",
"adr",
"bmad",
"release",
"release-prep",
"project",
"pr-labeler",
"issue-template",
"publish",
"ci",
"scripts",
"hooks",
"husky",
"commitlint",
// 📝 Documentation
"docs",
"doc",
"readme",
"changelog",
"support",
"contributing",
"security",
"license",
// 🌍 i18n & Accessibility
"i18n",
"l10n",
"a11y",
"accessibility",
// 📦 Dependencies
"deps",
"deps-dev",
"dependencies",
],
],
"subject-case": [0],
"header-max-length": [2, "always", 100],
"body-max-line-length": [1, "always", 100],
// DCO sign-off enforcement — every commit needs `Signed-off-by:` in the
// trailer. Project policy (separate from CC1.0; survives the spec's
// hardening of the other rules).
"signed-off-by": [2, "always", "Signed-off-by:"],
},
};