mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-10-01 03:53:41 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user