Search…
PVS Studio
Lifecycle: in production Last updated 2021-04-13.
Note: the tutorial is tested on Linux machine.
The Ruuvi firmware projects are analyzed by PVS Studio, a static code analyzer. It has to be installed and a trial/full license key has to be entered. You can get an Open Source license for projects hosted on GitHub.
Download the PVS Studio from project webpage: https://pvs-studio.com/en/pvs-studio-download/ On the same webpage, you can get the trial key.
After the installation process, you can add the trial license key previously received via email:
1
$pvs-studio-analyzer credentials NAME XXXX-XXXX-XXXX-XXXX
Copied!
Now when you compile with make you'll get the confirmation for successful PVS Studio analysis:
1
$Analyzer log conversion tool.
2
Copyright (c) 2021 PVS-Studio LLC
3
4
PVS-Studio is a static code analyzer and SAST (static application security
5
testing) tool that is available for C and C++ desktop and embedded development,
6
C# and Java under Windows, Linux and macOS.
7
8
Total messages: 286
9
Filtered messages: 239
10
plog-converter -a 'GA:1;OP:1;CS:1;MISRA:1' -t errorfile src/main.o.PVS-Studio.log src/run_integration_tests.o.PVS-Studio.log src/app_button.o.PVS-Studio.log src/app_comms.o.PVS-Studio.log src/app_heartbeat.o.PVS-Studio.log src/app_led.o.PVS-Studio.log src/app_log.o.PVS-Studio.log src/app_power.o.PVS-Studio.log src/app_sensor.o.PVS-Studio.log -o ./pvs.error
11
Analyzer log conversion tool.
12
Copyright (c) 2021 PVS-Studio LLC
13
14
PVS-Studio is a static code analyzer and SAST (static application security
15
testing) tool that is available for C and C++ desktop and embedded development,
16
C# and Java under Windows, Linux and macOS.
17
18
Total messages: 286
19
Filtered messages: 1
Copied!
The analysis report is stored as index.html file, located inside doxygen/html/fullhtml/
Copy link