inso
April 8, 2022, 8:28pm
1
Finally, SonarLint added C++ support for Visual Studio Code:
Dear C and C++ developers community, SonarLint already helps you check that the C and C++ code you develop in Visual Studio, Eclipse, or CLion is clean, i.e. it serves the purpose it has been written for whilst at the same time ensuring a high level...
Reading time: 1 mins 🕑
Likes: 6 ❤
sadly, atm only CMake projects are supported.
As far as I understand, PlatformIO is a build system, as CMake is. Am I right in assuming that there is no chance getting it to run in PIO?
Maybe someone knows a similar solution for advanced code checking (beside the basic project inspection → check code)?
PIO already supports a bunch of linting / code checker tools, but not SonarLint. Best to open a new issue at Issues · platformio/platformio-core · GitHub .
inso
April 9, 2022, 11:45am
3
1 Like
inso
June 10, 2022, 7:47pm
4
After I had a discussion at the Github issue (few weeks ago, very busy atm) that it could work with PIO, I have opened a ticket on the Sonar forums.
Here the response of a member of the team was:
I would better check in Support for SonarLint in Visual Studio Code · Issue #4219 · platformio/platformio-core · GitHub why temporary response files end up in the compilation database. It is not a good practice that temporary response files appear in the compilation database as those files may not be available.
Post on Sonar forums
Maybe someone here knows something about it?
If
while generating the compilation database, can you set it to not use response files? Are you able to generate a compilation database with the response files expanded?
is what keeps it from working properly, please note that in the already opened issue.