|
1 |
| -# Commit-Lint-AI |
| 1 | +English | [简体中文](./README_zh-CN.md) |
2 | 2 |
|
3 |
| -1. 将commit-msg文件复制到.git/hooks目录下 |
4 |
| -2. 将main.exe文件复制到工程目录下,如果你想复制到其他目录下,请留意commit-msg中的路径。 |
| 3 | +# Git Hooks Code Standards Checker |
5 | 4 |
|
6 |
| -完成以上两步操作即可开启ai commit message 检查。 |
| 5 | +A Git Hooks-based automation tool designed to verify code submission standards before commits, ensuring team code quality and commit message consistency. |
7 | 6 |
|
| 7 | +# Usage |
| 8 | + |
| 9 | +- Copy the commit-msg file to the .git/hooks directory |
| 10 | +- Copy the main.exe file to your project directory. If you want to copy it to another directory, please pay attention to the path in commit-msg |
| 11 | + |
| 12 | +## Key Features |
| 13 | + |
| 14 | +- Commit Message Format Validation |
| 15 | +- Automated Code Style Checking |
| 16 | +- Basic Code Quality Verification |
| 17 | +- Sensitive Information Leak Detection |
| 18 | +- Branch Naming Convention Enforcement |
| 19 | + |
| 20 | +## Technical Highlights |
| 21 | + |
| 22 | +- Built on Git Hooks mechanism, particularly pre-commit and commit-msg hooks |
| 23 | +- Zero intrusion implementation, easy to promote within teams |
| 24 | +- Configurable, supporting custom validation rules |
| 25 | +- Fail-fast mechanism for early issue detection |
| 26 | + |
| 27 | +## Use Cases |
| 28 | + |
| 29 | +- Standardize team code submission process |
| 30 | +- Prevent low-quality code commits |
| 31 | +- Ensure commit message standardization |
| 32 | +- Reduce code review workload |
| 33 | + |
| 34 | +## Advantages |
| 35 | + |
| 36 | +- Automated execution without manual intervention |
| 37 | +- Unified development standards across teams |
| 38 | +- Enhanced code quality |
| 39 | +- Reduced production issues |
| 40 | + |
| 41 | +## Benefits |
| 42 | + |
| 43 | +- Streamlines the development workflow |
| 44 | +- Maintains consistent coding standards |
| 45 | +- Improves team collaboration |
| 46 | +- Reduces technical debt |
| 47 | +- Speeds up code review process |
0 commit comments