From 2ec55caeeafe4cc381386b8f708f6f1f76bffc3f Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 30 May 2021 17:12:51 +0200 Subject: pre-commit: Add cppcheck checker --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.pre-commit-config.yaml') 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] -- cgit v1.2.3