]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Add tools/check
authorJohan Malm <jgm323@gmail.com>
Fri, 19 Jun 2020 21:31:33 +0000 (22:31 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 19 Jun 2020 21:31:33 +0000 (22:31 +0100)
tools/check [new file with mode: 0755]

diff --git a/tools/check b/tools/check
new file mode 100755 (executable)
index 0000000..1fcd7b2
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+options="\
+       --enable=all \
+       --suppress=missingInclude \
+       --suppress=unusedFunction \
+       --suppress=unmatchedSuppression \
+"
+
+for f in  $(find src/ -name "*.c"); do
+       cppcheck ${options} "${f}"
+done
+