From 5532b8cd5069a2a23d5bdfaeb735d8ef166a0699 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sat, 9 May 2026 11:36:38 +0000 Subject: [PATCH] chore: Add pre-push hooks --- makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefile b/makefile index 0556ab9..4bb2808 100644 --- a/makefile +++ b/makefile @@ -20,3 +20,10 @@ test: integration .PHONY: clean integration test clean: rm -f looper integration_test src/*.o + +check: + cppcheck --enable=all --error-exitcode=1 src/*.c + +# Optional: Format code using clang-format +format: + clang-format -i src/*.c