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
# ═══════════════════════════════════════════════════════════════════════════════
# Commitlint Configuration
# ═══════════════════════════════════════════════════════════════════════════════
# Satisfies: RT-3 (Conventional commit infrastructure)
# Reference: https://www.conventionalcommits.org/en/v1.0.0/
# ═══════════════════════════════════════════════════════════════════════════════
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 only
- style # Formatting, missing semicolons, etc.
- refactor # Code change that neither fixes a bug nor adds a feature
- perf # Performance improvement
- test # Adding or correcting tests
- build # Changes to build system or dependencies
- ci # Changes to CI configuration
- chore # Other changes that don't modify src or test files
- revert # Reverts a previous commit
# Type is required and must be lowercase
type-case:
- 2
- always
- lower-case
type-empty:
- 2
- never
# Subject (description) rules
subject-empty:
- 2
- never
subject-case:
- 2
- always
- - lower-case
- sentence-case
subject-full-stop:
- 2
- never
- "."
# Header (type + scope + subject) max length
header-max-length:
- 2
- always
- 100
# Body rules
body-leading-blank:
- 2
- always
body-max-line-length:
- 2
- always
- 100
# Footer rules
footer-leading-blank:
- 2
- always
footer-max-line-length:
- 2
- always
- 100
# Scope rules (optional but must follow format if provided)
scope-case:
- 2
- always
- lower-case
# ═══════════════════════════════════════════════════════════════════════════════
# Examples of valid commit messages:
# ═══════════════════════════════════════════════════════════════════════════════
#
# feat: add query caching for improved performance
# fix(gql): resolve parser error on empty MATCH clauses
# docs: add CLI usage examples to README
# refactor(storage): simplify memory mapping logic
# test(transaction): add ACID compliance tests
# build: update serde_json to 1.0.108
# ci: add Windows to test matrix
# perf(index): optimize B-tree lookups
#
# With body:
# feat(query): add path finding algorithm
#
# Implements Dijkstra's algorithm for shortest path queries.
# Includes optimization for sparse graphs.
#
# Closes #42
# ═══════════════════════════════════════════════════════════════════════════════