-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.commitlintrc.yaml
More file actions
130 lines (114 loc) · 2.94 KB
/
.commitlintrc.yaml
File metadata and controls
130 lines (114 loc) · 2.94 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
---
# Commitlint configuration
# https://commitlint.js.org/
#
# Enforces Conventional Commits format:
# <type>(<scope>): <subject>
#
# Examples:
# feat(vpc): add subnet discovery command
# fix(shell): correct context prompt rendering
# docs(readme): update installation instructions
# refactor(core): extract base handler class
# test(vpn): add tunnel status tests
extends:
- "@commitlint/config-conventional"
rules:
# Type must be one of the allowed values
type-enum:
- 2
- always
- - feat # New feature
- fix # Bug fix
- docs # Documentation changes
- style # Code style (formatting, semicolons, etc.)
- refactor # Code refactoring (no feature or fix)
- perf # Performance improvement
- test # Add or update tests
- build # Build system or dependencies
- ci # CI/CD configuration
- chore # Maintenance tasks
- revert # Revert a commit
# Type must be lowercase
type-case:
- 2
- always
- lower-case
# Type is required
type-empty:
- 2
- never
# Scope should be lowercase
scope-case:
- 2
- always
- lower-case
# Scope is optional but encouraged
scope-empty:
- 0
- never
# Common scopes for this project
scope-enum:
- 1
- always
- - vpc # VPC-related commands
- tgw # Transit Gateway commands
- firewall # Network Firewall commands
- vpn # VPN commands
- elb # Load balancer commands
- ec2 # EC2 instance commands
- cloudwan # Cloud WAN commands
- shell # Shell framework
- core # Core utilities
- cli # CLI interface
- handlers # Command handlers
- models # Data models
- modules # AWS service modules
- traceroute # Traceroute functionality
- cache # Caching system
- graph # Command graph
- config # Configuration
- tests # Test infrastructure
- docs # Documentation
- deps # Dependencies
- ci # CI/CD
# Subject must not be empty
subject-empty:
- 2
- never
# Subject should be lowercase
subject-case:
- 2
- always
- - lower-case
- sentence-case
# Subject should not end with period
subject-full-stop:
- 2
- never
- "."
# Header max length (type + scope + subject)
header-max-length:
- 2
- always
- 72
# Body max line length
body-max-line-length:
- 2
- always
- 100
# Footer max line length
footer-max-line-length:
- 2
- always
- 100
# Body should be separated from subject by blank line
body-leading-blank:
- 2
- always
# Footer should be separated from body by blank line
footer-leading-blank:
- 2
- always
# Help message displayed on failure
helpUrl: "https://www.conventionalcommits.org/"