Git commits¶
Commit message linters¶
commitizen¶
commitlint¶
- Website
- GitHub
- Getting started
- Rules
- Official container image
- 3rd party pre-commit hooks only:
Install:
System packages:
Issue: Cannot find module "@commitlint/config-conventional" from "/home/varac"
Configure:
Usage:
Check last commit:
Limitations:
- Requires a config file even for simple custom rules
pre-commit checks¶
- Verify that a commit message contains some string with pre-commit
- Disadvantage: Doesn't give any hint what is wrong with the commit msg
Stale projects¶
gitlint¶
Add a default .gitlint file:
Ignore body-is-missing rule: