aboutsummaryrefslogtreecommitdiff
path: root/scripts/pvscheck.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-11-10 09:42:28 -0500
committerJames McCoy <jamessan@jamessan.com>2020-11-10 09:42:28 -0500
commit65993c444a43b37fc7b314cbd8287f45bc3d13f7 (patch)
treefb1f27dce89a89aebf801b164ccd800ae42af17b /scripts/pvscheck.sh
parentbb7ed42089e77feebe26b94f4cb46c72254b55e6 (diff)
downloadrneovim-65993c444a43b37fc7b314cbd8287f45bc3d13f7.tar.gz
rneovim-65993c444a43b37fc7b314cbd8287f45bc3d13f7.tar.bz2
rneovim-65993c444a43b37fc7b314cbd8287f45bc3d13f7.zip
Use the free PVS-Studio license
As of release 7.10, PVS Studio requires a license, even for the "check me" comment based analyzing.
Diffstat (limited to 'scripts/pvscheck.sh')
-rwxr-xr-xscripts/pvscheck.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh
index c09e8c4555..1efde4223d 100755
--- a/scripts/pvscheck.sh
+++ b/scripts/pvscheck.sh
@@ -363,10 +363,15 @@ 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)" \
--output-file PVS-studio.log \
--file build/compile_commands.json \