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