summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-04 11:35:57 +0200
committerxengineering <me@xengineering.eu>2022-10-04 11:35:57 +0200
commit310851724625b9cbd4dd6b90135a7530b735b358 (patch)
tree4ff662b44040ef663dee96c8ce383dad69a68f67
parent645e23a6594f649118dabdae13fcb6bd2a512ad3 (diff)
downloadlimox-310851724625b9cbd4dd6b90135a7530b735b358.tar
limox-310851724625b9cbd4dd6b90135a7530b735b358.tar.zst
limox-310851724625b9cbd4dd6b90135a7530b735b358.zip
Add initial linting script based on splint
-rwxr-xr-xlint.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lint.sh b/lint.sh
new file mode 100755
index 0000000..5264112
--- /dev/null
+++ b/lint.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+
+if ! command -v splint 2> /dev/null
+then
+ echo "Please install splint (http://splint.org/)!"
+ exit 1
+fi
+
+find . -type f -iname '*.c' | xargs splint