File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ RUN apt update && apt upgrade --yes
1010RUN apt install --yes gcc-14 g++-14
1111RUN apt install --yes clang-format pre-commit
1212RUN apt install --yes lcov
13+ RUN apt install --yes cppcheck
1314
1415# Choose default gcc and g++ version
1516
Original file line number Diff line number Diff line change @@ -14,3 +14,22 @@ repos:
1414 hooks :
1515 - id : check-github-actions
1616 - id : check-github-workflows
17+ - repo : local
18+ hooks :
19+ - id : cppcheck
20+ name : cppcheck
21+ entry : cppcheck
22+ language : system
23+ args :
24+ [
25+ --clang=clang,
26+ --language=c++,
27+ --std=c++20,
28+ --enable=all,
29+ --suppress=unusedFunction,
30+ --suppress=unmatchedSuppression,
31+ --suppress=missingIncludeSystem,
32+ --suppress=toomanyconfigs,
33+ --error-exitcode=1,
34+ ]
35+ files : \.(h|cpp)$
You can’t perform that action at this time.
0 commit comments