feat: strict mode + simplified hashline edit operations
- Consolidated `replace` operations and removed `insert`. - Improved line hash collision resistance for symbol-only text.
This commit is contained in:
@@ -7,8 +7,8 @@ Classify git diff into conventional commit format.
|
||||
## 1. Determine Scope
|
||||
|
||||
Apply scope when 60%+ line changes target single component:
|
||||
- 150 lines in src/api/, 30 in src/lib.rs -> "api"
|
||||
- 50 lines in src/api/, 50 in src/types/ -> null (50/50 split)
|
||||
- 150 lines in src/api/, 30 in src/lib.rs → "api"
|
||||
- 50 lines in src/api/, 50 in src/types/ → null (50/50 split)
|
||||
|
||||
Use null for: cross-cutting changes, project-wide refactoring.
|
||||
|
||||
@@ -32,7 +32,7 @@ Group 3+ similar changes: "Updated 5 test files for new API." (not five bullets)
|
||||
|
||||
Issue references inline: (#123), (#123, #456), (#123-#125).
|
||||
|
||||
Priority: user-visible -> perf/security -> architecture -> internal.
|
||||
Priority: user-visible → perf/security → architecture → internal.
|
||||
|
||||
Exclude: import changes, whitespace, formatting, trivial renames, debug prints, comment-only, file moves without modification.
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@ Good:
|
||||
- Changed default timeout from 30s to 60s for slow connections
|
||||
|
||||
Bad:
|
||||
- **cli**: Added dry-run flag -> redundant scope prefix
|
||||
- Added new feature. -> vague, trailing period
|
||||
- Refactored parser internals -> not user-visible
|
||||
- **cli**: Added dry-run flag → redundant scope prefix
|
||||
- Added new feature. → vague, trailing period
|
||||
- Refactored parser internals → not user-visible
|
||||
|
||||
Breaking Changes:
|
||||
- Removed legacy auth flow; users must re-authenticate with OAuth tokens
|
||||
|
||||
@@ -23,15 +23,15 @@ Output: ONLY description after "{{ commit_type }}{{ scope_prefix }}:"; max {{ ch
|
||||
</verb-reference>
|
||||
<examples>
|
||||
feat | TLS encryption added to HTTP client for MITM prevention
|
||||
-> added TLS support to prevent man-in-the-middle attacks
|
||||
→ added TLS support to prevent man-in-the-middle attacks
|
||||
refactor | Consolidated HTTP transport into unified builder pattern
|
||||
-> migrated HTTP transport to unified builder API
|
||||
→ migrated HTTP transport to unified builder API
|
||||
fix | Race condition in connection pool causing exhaustion under load
|
||||
-> corrected race condition causing connection pool exhaustion
|
||||
→ corrected race condition causing connection pool exhaustion
|
||||
perf | Batch processing optimized to reduce memory allocations
|
||||
-> eliminated allocation overhead in batch processing
|
||||
→ eliminated allocation overhead in batch processing
|
||||
build | Updated serde to fix CVE-2024-1234
|
||||
-> upgraded serde to 1.0.200 for CVE-2024-1234
|
||||
→ upgraded serde to 1.0.200 for CVE-2024-1234
|
||||
</examples>
|
||||
<banned-words>
|
||||
comprehensive, various, several, improved, enhanced, quickly, simply, basically, this change, this commit, now
|
||||
|
||||
Reference in New Issue
Block a user