-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.gitlint
More file actions
51 lines (38 loc) · 1.31 KB
/
.gitlint
File metadata and controls
51 lines (38 loc) · 1.31 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
# .gitlint configuration for kubernetes-sigs/karpenter-provider-ibm-cloud
[general]
# Ignore merge commits, revert commits, fixup commits, and squash commits
ignore-merge-commits=true
ignore-revert-commits=true
ignore-fixup-commits=true
ignore-squash-commits=true
# Fix regex warnings
regex-style-search=true
# Allow body-less commits for simple changes
ignore=body-is-missing
# Enable debug mode (useful for troubleshooting)
# debug=true
[title-max-length]
line-length=72
[title-min-length]
min-length=10
[title-must-not-contain-word]
# Words that should not appear in commit titles
words=wip,WIP,temp,TEMP,fixme,FIXME,todo,TODO,hack,HACK
[body-max-line-length]
line-length=80
[body-min-length]
min-length=10
[body-not-informative]
# Prevent uninformative body messages
[title-match-regex]
# Enforce conventional commits format: type(scope): description
# Examples: feat(nodepool): add spot instance support
# fix: resolve memory leak in controller
# docs(readme): update installation instructions
regex=^(feat|fix|docs|style|refactor|test|chore|ci|perf|build|revert)(\(.+\))?: .+
[ignore-by-title]
# Ignore commits with these title patterns
regex=^(Merge|Release|Version|Bump|Initial commit).*
[ignore-by-author-name]
# Ignore commits from automated tools
regex=^(dependabot|renovate|github-actions).*