mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-05-30 11:06:11 +08:00
feat(pre-commit): 添加额外的hooks和shebangs检查
添加了检查文件夹大小写冲突、合并冲突和可执行文件shebangs的预提交hooks。这确保了提交的文件在所有平台上都能正常工作,并遵循项目的编码风格。此外,实现了对可执行文件的shebangs进行自动修复的支持。
This commit is contained in:
parent
7d016f8562
commit
645789254d
@ -6,12 +6,14 @@ repos:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- id: check-case-conflict
|
||||
- id: check-merge-conflict
|
||||
- id: check-executables-have-shebangs
|
||||
args:
|
||||
- --autofix
|
||||
- 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/
|
Loading…
x
Reference in New Issue
Block a user