diff options
author | James McCoy <jamessan@jamessan.com> | 2020-11-10 12:59:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 12:59:05 -0500 |
commit | a4fea2884dae63d218179035981d2edfa21fda91 (patch) | |
tree | 537d37e7ccfecfdccf686a99f2e7f04bafe9afb6 /scripts | |
parent | bb7ed42089e77feebe26b94f4cb46c72254b55e6 (diff) | |
parent | 31366c44c45e7ffd402a350b34a841340de9fe5f (diff) | |
download | rneovim-a4fea2884dae63d218179035981d2edfa21fda91.tar.gz rneovim-a4fea2884dae63d218179035981d2edfa21fda91.tar.bz2 rneovim-a4fea2884dae63d218179035981d2edfa21fda91.zip |
Merge pull request #13266 from jamessan/pvs-check
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pvscheck.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh index c09e8c4555..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 @@ -363,11 +363,17 @@ run_analysis() {( cd "$tgt" + if [ ! -r PVS-Studio.lic ]; then + pvs-studio-analyzer credentials -o PVS-Studio.lic 'PVS-Studio Free' 'FREE-FREE-FREE-FREE' + fi + # pvs-studio-analyzer exits with a non-zero exit code when there are detected # errors, so ignore its return pvs-studio-analyzer \ 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 |