pre-commit: add check-yaml,edit cppcheck hook
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1cba4dea10
commit
cf340a200a
|
@ -6,6 +6,8 @@ repos:
|
|||
hooks:
|
||||
- id: check-merge-conflict
|
||||
exclude: ^lib/
|
||||
- id: check-yaml
|
||||
exclude: ^lib/
|
||||
- repo: meta
|
||||
hooks:
|
||||
- id: check-hooks-apply
|
||||
|
@ -16,11 +18,10 @@ repos:
|
|||
- id: cppcheck
|
||||
args: ["--language=c++", "--std=c++20",
|
||||
"--enable=warning,performance,portability,information,unusedFunction,missingInclude",
|
||||
"--config-exclude=lib/", "--error-exitcode=1",
|
||||
"--verbose"]
|
||||
files: \.(cpp|cc|cxx,h)$
|
||||
types: [file, c++]
|
||||
types_or: [file, c++, header]
|
||||
exclude: ^lib/
|
||||
types_or: [c++, header]
|
||||
- repo: https://github.com/gringolito/cpp-pre-commit-hooks
|
||||
rev: 3481ddf0fb
|
||||
hooks:
|
||||
|
|
Reference in New Issue