| name | commit-validator |
| description | Enforce commit message conventions and code quality standards.
Prevent bad commits before they happen.
Use when: commit message, conventional commits, commit rules, git standards
|
Commit Validator v1.8.0
Keep your Git history clean and meaningful.
Features
- Conventional commit enforcement
- Ticket/issue linking
- Scope validation
- Breaking change detection
- Custom rule engine
- Team-wide consistency
Installation
Installs a commit-msg hook in your repository.
Configuration
format:
pattern: "^(feat|fix|docs|style|refactor|test|chore)(\\(.+\\))?!?: .{10,72}$"
require_scope: false
require_issue: true
issue_pattern: "[A-Z]+-[0-9]+"
validation:
max_subject_length: 72
max_body_length: 500
require_body: false
allowed_types:
- feat
- fix
- docs
- style