which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)?
SonarQube Enterprise Edition Version 7.7 (build 23042)
SonarQube Scanner 4.0.0.1744
what are you trying to achieve
For a C++ project, is it possible to only collect code coverage and not running the code quality checks? I am working with a very large project and I suspect having a large number of rules is seriously slowing down our sonar-scanner, and I don’t require the code quality checks to run every single time.
it is not possible to import coverage separately from the analysis for the same project in two different runs as it would override the previous analysis. Why would you say the you don’t require code quality checks to run every single time?
FYI, we are working to have have incremental analysis to not have to scan the full project each time.
Why would you say the you don’t require code quality checks to run every single time?
Ideally we would like to, however each time the sonar-scanner runs it takes upwards of 3 hours (project contains 1.5 M lines of C/C++ code). This is just too long for us to run on-PR as a part of CI. As of now I am mostly concerned at with just getting the coverage results and using that as a quality gate.
As I mentioned, it seems like the quality checks are what is slowing the scanner down. Is there some way to have the scanner only check “changed” code instead of doing a full analysis every time?
it is not possible to import coverage separately from the analysis for the same project in two different runs as it would override the previous analysis.
Is there maybe a way I can force my project to run against an empty quality profile? I tired creating Quality Profiles with no active rules and set my project to use them, however the scanner still takes a long time to run. Am I doing something wrong or is this just not possible?
Hi @mpaladin, I’ve been messing around and suddenly my scanner run times are much faster (~2 minutes). It appears I managed to disable the C/C++ static analysis since the front-end now shows zero detected bugs, but coverage results are still reported. Basically this is exactly what I wanted, but I’m not sure exactly what I changed! I ran the scanner in debug mode and included the log, can you help me find out what I did differently?
could you please make sure you are using latest version please?
There is only 1 entry in the json: tm1server/prod/tm1s/tm1s_dummy.cpp which is probably not mapped to any file belonging to the project and part of the analysis.