Add cppcheck as a pre-commit hook (#1646)

* add cppcheck as a pre-commit hook

* fix Dockerfile

* update precommit config

* exclude panda and opendbc
old-commit-hash: 3c461ca5ccf1b0ae2b9164feced96a5aa4998555
This commit is contained in:
Adeeb Shihadeh
2020-06-19 20:39:34 -07:00
committed by GitHub
parent d66c6202bb
commit 0891b1331d
6 changed files with 15 additions and 20 deletions
+13
View File
@@ -31,3 +31,16 @@ repos:
language: system
types: [python]
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(laika_repo)|(rednose_repo)/'
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
types: [c++]
exclude: '^(phonelibs)|(external)|(cereal)|(opendbc)|(panda)|(tools)|(selfdrive/modeld/thneed/debug)|(selfdrive/modeld/test)|(selfdrive/camerad/test)/'
args:
- --error-exitcode=1
- --quiet
- --force
- -j8