chore: add install-hooks target and update cppcheck library flag
This commit is contained in:
committed by
Loic Coenen (aider)
parent
7e9224cdc7
commit
d2e39f3451
5
makefile
5
makefile
@@ -22,8 +22,11 @@ clean:
|
|||||||
rm -f looper integration_test src/*.o
|
rm -f looper integration_test src/*.o
|
||||||
|
|
||||||
check:
|
check:
|
||||||
cppcheck --enable=all --error-exitcode=1 src/*.c
|
cppcheck --enable=all --error-exitcode=1 src/*.c --library=posix .
|
||||||
|
|
||||||
# Optional: Format code using clang-format
|
# Optional: Format code using clang-format
|
||||||
format:
|
format:
|
||||||
clang-format -i src/*.c
|
clang-format -i src/*.c
|
||||||
|
|
||||||
|
install-hooks:
|
||||||
|
git config core.hooksPath .githooks
|
||||||
|
|||||||
Reference in New Issue
Block a user