summaryrefslogtreecommitdiff
path: root/scripts/cppcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cppcheck.sh')
-rwxr-xr-x[-rw-r--r--]scripts/cppcheck.sh40
1 files changed, 5 insertions, 35 deletions
diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh
index be081040..91ab007e 100644..100755
--- a/scripts/cppcheck.sh
+++ b/scripts/cppcheck.sh
@@ -1,39 +1,9 @@
#!/bin/sh
-#
-# apply rekonq coding style to all cpp and header files in src directory
-#
-# requirements: installed astyle
-#
-# rekonq use kdelibs coding style, except for brackets, so while kdelibs coding style
-# is
-#
-# void foo() {
-# ...
-# }
-#
-# rekonq uses
-#
-# void foo()
-# {
-# ...
-# }
-#
-# I like this way, for me more readable. :)
-#
-# Kdelibs coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style
+# inline suppressions are enabled: use // cppcheck-suppress warningId
+# --inconclusive: possible false positives
+# --force: force checking of all configurations in files
+# --verbose: output more detailed error information
-PWD=$(pwd)
+cppcheck --enable=all --inline-suppr --project=cmake-build-debug/compile_commands.json
-cd $PWD
-cd ..
-cd src
-
-echo "cppcheck(ing)..."
-cppcheck \
---enable=all \
---force \
---verbose \
-. 2>/tmp/cppcheck.out
-
-echo "DONE. read output in /tmp/cppcheck.out"