--- a/pvs-studio/build.sh Wed Jul 24 01:30:56 2019 -0500
+++ b/pvs-studio/build.sh Wed Jul 24 02:28:08 2019 -0500
@@ -18,6 +18,7 @@
BUILD_DIR="build-pvs-studio"
+PLOG_ARGS="--excludedCodes V011" # don't leak our secrets via `set -x`
@@ -46,11 +47,12 @@
pvs-studio-analyzer analyze -l /license -o pvs-studio.log
# convert the output to html
-plog-converter -a GA:1,2 -t fullhtml -o pvs-studio -p ${HG_REMOTE} -v ${HG_COMMIT} pvs-studio.log
+plog-converter -a GA:1,2 -t fullhtml -o pvs-studio -p ${HG_REMOTE} -v ${HG_COMMIT} ${PLOG_ARGS} pvs-studio.log cp -a pvs-studio ${CONVEY_WORKSPACE}
# run the converter to determine if we found issues
-ERRORS=$(plog-converter -a GA:1,2 -t tasklist pvs-studio.log | wc -l)
+plog-converter -a GA:1,2 -t tasklist ${PLOG_ARGS} -o ${CONVEY_WORKSPACE}/pvs-studio/tasklist.txt pvs-studio.log +ERRORS=$(wc -l ${CONVEY_WORKSPACE}/pvs-studio/tasklist.txt | awk '{print $1}') # the tasklist output has a stock line at the top, which we ignore by checking
# if we have more than one line in the file
if [ "${ERRORS}" -gt 1 ] ; then