mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-02 12:27:40 +08:00
新增检查工具集成,包括pre-commit-hooks v2.3.0和pre-commit-java v0.5.4,以自动化代码样式和质量验证。这些工具将帮助检测并修正yaml格式问题、修复文件末尾换行、修剪尾随空格,并执行Java代码的静态分析和风格检查,排除测试目录。
17 lines
384 B
YAML
17 lines
384 B
YAML
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/gherynos/pre-commit-java
|
|
rev: v0.5.4
|
|
hooks:
|
|
- id: pmd
|
|
exclude: /test/
|
|
- id: cpd
|
|
exclude: /test/
|
|
- id: checkstyle
|
|
exclude: /test/ |