aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-11-10 09:52:45 -0500
committerJames McCoy <jamessan@jamessan.com>2020-11-10 10:00:25 -0500
commit088161a9459a6afed84ea07ef28912e2489bc286 (patch)
tree9208e338542c20d529fecabe687b9a41521faefe
parent65993c444a43b37fc7b314cbd8287f45bc3d13f7 (diff)
downloadrneovim-088161a9459a6afed84ea07ef28912e2489bc286.tar.gz
rneovim-088161a9459a6afed84ea07ef28912e2489bc286.tar.bz2
rneovim-088161a9459a6afed84ea07ef28912e2489bc286.zip
pvs: Exclude xdiff from analysis and comment munging
-rwxr-xr-xscripts/pvscheck.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh
index 1efde4223d..f054f6e6fe 100755
--- a/scripts/pvscheck.sh
+++ b/scripts/pvscheck.sh
@@ -346,7 +346,7 @@ patch_sources() {(
if test "$only_build" != "--only-build" ; then
find \
src/nvim test/functional/fixtures test/unit/fixtures \
- -name '*.c' \
+ \( -name '*.c' -a '!' -path '*xdiff*' \) \
-exec /bin/sh -c "$sh_script" - '{}' \;
fi
@@ -373,6 +373,7 @@ run_analysis() {(
analyze \
--lic-file PVS-Studio.lic \
--threads "$(get_jobs_num)" \
+ --exclude-path src/nvim/xdiff \
--output-file PVS-studio.log \
--file build/compile_commands.json \
--sourcetree-root . || true