aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2021-05-30 17:12:51 +0200
committerJan Sucan <jan@jansucan.com>2021-05-30 18:06:24 +0200
commit2ec55caeeafe4cc381386b8f708f6f1f76bffc3f (patch)
treed2274464baeaaae4e4c8f6dd70d16b5b2e475fd0 /.pre-commit-config.yaml
parente6d470010a296064db894df2c1f4b373af13e17f (diff)
pre-commit: Add cppcheck checker
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 20aae69..ca17b76 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,3 +16,8 @@ repos:
hooks:
- id: forbid-tabs
exclude: '^.*Makefile$|^.*\.mk$'
+- repo: https://gitlab.com/daverona/pre-commit/cpp
+ rev: 0.8.0
+ hooks:
+ - id: cppcheck
+ args: [--enable=all, --force, --suppress=missingIncludeSystem, --suppress=unmatchedSuppression, --inline-suppr, src]