aboutsummaryrefslogtreecommitdiff
path: root/run-static-analysis.sh
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-20 12:51:23 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-22 11:30:54 +0200
commitc8a5e33fcdde322f486d6c69e7e16fa346793fc9 (patch)
treeea7d12c03048fab6e0cbc7571b779c592d610512 /run-static-analysis.sh
parentb91b3d807d3e049358027d53ec5e4574e16850b3 (diff)
downloadnx-libs-c8a5e33fcdde322f486d6c69e7e16fa346793fc9.tar.gz
nx-libs-c8a5e33fcdde322f486d6c69e7e16fa346793fc9.tar.bz2
nx-libs-c8a5e33fcdde322f486d6c69e7e16fa346793fc9.zip
Suppress false positives in static analysis
there's more work to do... The whole nx-X11/extras dir is no longer checked since we only have Mesa there and we do not want to check that mess... All the exceptions in static-analysis-suppressions have been manually checked.
Diffstat (limited to 'run-static-analysis.sh')
-rwxr-xr-xrun-static-analysis.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-static-analysis.sh b/run-static-analysis.sh
index 0524c469a..a9368973b 100755
--- a/run-static-analysis.sh
+++ b/run-static-analysis.sh
@@ -6,9 +6,9 @@ if [[ "${STATIC_ANALYSIS}" == "yes" ]]; then
echo 'Error: cppcheck is not installed.' >&2
exit 1
fi
- CPPCHECK_OPTS='--error-exitcode=0 --force --quiet'
+ CPPCHECK_OPTS='--error-exitcode=0 --force --quiet --suppressions-list=./static-analysis-suppressions'
# we exclude some external projects
- CPPCHECK_EXCLUDES='-i ./nx-X11/extras/Mesa* -i ./nx-X11/extras/Mesa_* -i nx-X11/programs/Xserver/GL/mesa*'
+ CPPCHECK_EXCLUDES='-i ./nx-X11/extras/ -i nx-X11/programs/Xserver/GL/mesa* -i ./.pc -i ./nx-X11/.build-exports -i ./nx-X11/exports -i ./doc'
echo "$(cppcheck --version):";
cppcheck $CPPCHECK_OPTS $CPPCHECK_EXCLUDES .;
fi