mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
pvscheck: Ignore exit code of pvs-studio-analyzer
Since its typically non-zero, the script immediately exits instead of converting the binary log into useful formats.
This commit is contained in:
@@ -343,13 +343,15 @@ run_analysis() {(
|
|||||||
|
|
||||||
cd "$tgt"
|
cd "$tgt"
|
||||||
|
|
||||||
|
# pvs-studio-analyzer exits with a non-zero exit code when there are detected
|
||||||
|
# errors, so ignore its return
|
||||||
pvs-studio-analyzer \
|
pvs-studio-analyzer \
|
||||||
analyze \
|
analyze \
|
||||||
--threads "$(get_jobs_num)" \
|
--threads "$(get_jobs_num)" \
|
||||||
--output-file PVS-studio.log \
|
--output-file PVS-studio.log \
|
||||||
--verbose \
|
--verbose \
|
||||||
--file build/compile_commands.json \
|
--file build/compile_commands.json \
|
||||||
--sourcetree-root .
|
--sourcetree-root . || true
|
||||||
|
|
||||||
plog-converter -t xml -o PVS-studio.xml PVS-studio.log
|
plog-converter -t xml -o PVS-studio.xml PVS-studio.log
|
||||||
plog-converter -t errorfile -o PVS-studio.err PVS-studio.log
|
plog-converter -t errorfile -o PVS-studio.err PVS-studio.log
|
||||||
|
Reference in New Issue
Block a user