From 16e879cb1692ff0c68dc73f2754d4593e47fe07a Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Fri, 19 Jun 2020 22:31:33 +0100 Subject: [PATCH] Add tools/check --- tools/check | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tools/check diff --git a/tools/check b/tools/check new file mode 100755 index 00000000..1fcd7b22 --- /dev/null +++ b/tools/check @@ -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 + -- 2.52.0