PVS-Studio

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
chennes
Veteran
Posts: 3910
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: PVS-Studio

Post by chennes »

No worries, the SARIF files are nicely structured, scripting the remove isn't too painful. Right now I'm just using a vim macro, but probably in the next go-round I'll write something easier-to-use and post it.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

chennes wrote: Thu Feb 11, 2021 10:09 pm No worries, the SARIF files are nicely structured, scripting the remove isn't too painful. Right now I'm just using a vim macro, but probably in the next go-round I'll write something easier-to-use and post it.
There are some python classes for sarif, if it can help...

https://github.com/microsoft/sarif-python-om
https://pypi.org/project/sarif-om/

https://sarifweb.azurewebsites.net/
https://docs.oasis-open.org/sarif/sarif ... -v2.0.html
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

New report from build 0.20.25220 has been created...
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

New report from build 0.20.28030 has been created...
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

chennes wrote: Thu Feb 11, 2021 10:09 pm No worries, the SARIF files are nicely structured, scripting the remove isn't too painful. Right now I'm just using a vim macro, but probably in the next go-round I'll write something easier-to-use and post it.
The tool that Chris created for the sarif format...

https://github.com/chennes/CleanSARIF
https://forum.freecadweb.org/viewtopic. ... 58#p478258
https://forum.freecadweb.org/viewtopic. ... 47#p478947
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

New report from build 0.21.30257 has been created...


Also a few recent blogposts from PVS-Studio, for those that have some interest in it...
https://pvs-studio.com/en/blog/posts/0908/ PVS-Studio: static code analysis technology
https://pvs-studio.com/en/blog/posts/cpp/0963/ Intermodular analysis of C and C++ projects in detail. Part 1
https://pvs-studio.com/en/blog/posts/cpp/0965/ Intermodular analysis of C and C++ projects in detail. Part 2
Last edited by saso on Mon Aug 07, 2023 6:38 pm, edited 3 times in total.
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

New report from build 0.21.32049 has been created. Since the last CodeQL report was made public, I guess it is ok to make this also public...

https://mega.nz/file/XMYyXTpR#waMETnvmN ... 12MPY_-lWA
Last edited by saso on Fri Mar 03, 2023 1:46 pm, edited 1 time in total.
User avatar
chennes
Veteran
Posts: 3910
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: PVS-Studio

Post by chennes »

Thanks! Now that LGTM is gone, can we reconfigure this CodeQL run to also analyze the Python?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: PVS-Studio

Post by saso »

chennes wrote: Thu Mar 02, 2023 3:30 pm Thanks! Now that LGTM is gone, can we reconfigure this CodeQL run to also analyze the Python?
This are the results from PVS-Studio that does not yet support python AFAIK, but results for CodeQL have also been published for this build, they are available here viewtopic.php?p=663911#p663911 and they do include both python and c++ results. What I am also looking in to is to configure CodeQL also to run as part of GitHub Actions, so it would run automatically on all PR as recommended here https://github.blog/2022-08-15-the-next ... -scanning/
User avatar
chennes
Veteran
Posts: 3910
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: PVS-Studio

Post by chennes »

Sorry, getting my static analyzer topics mixed up...
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply