From 855221d217fd6d19f73edf0ba6319a507c484805 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 30 Jan 2026 21:44:32 +0000 Subject: [PATCH] add linting to makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index baf8ec6..276a6c3 100644 --- a/Makefile +++ b/Makefile @@ -53,3 +53,12 @@ install: $(TARGETS) uninstall: rm -f /usr/local/bin/cnadd /usr/local/bin/cndump /usr/local/bin/cncount /usr/local/bin/cndel /usr/local/bin/cnfind /usr/local/bin/cnhelp + +# Strict splint (very verbose, use with caution) +splint-strict: + splint +standard -I./include src/*.c + +cppcheck: + @echo "Running cppcheck..." + @cppcheck --std=c90 --enable=warning,style,performance,portability \ + --suppress=missingIncludeSystem --quiet -I./include src/