pre-commit: add check-yaml,edit cppcheck hook
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-06 22:12:50 +01:00
parent 1cba4dea10
commit cf340a200a
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -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: