-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to disable CxxSquidSensor #2228
Comments
Hello @AndreyAlifanov, thank you for your feedback. Unfortunately it is not that simple. SonarQube needs to read a file first (indexing) before issues can be assigned. Theoretically you could just read in a plain text file, but then all the software metrics (e.g. LoC, ...) are missing. The most expensive part is surely the preprocessor, if you leave it out you will not get a valid C++ syntax. The easiest thing you can try is to reduce the number of include paths passed to the plugin. The plugin itself could optimize the preprocessor: Better support for include guards, precompiled header, parallel reading, ... etc. Or we could try to determine the software metrics with simpler algorithms... We are always open for good ideas (and support)! Regards, |
Hello, @guwirth thank you for quick answer. I don't need correct C++ syntax at all in this particular case. :) For clarity. Our code base is about 8 millions lines of code. Solution is about 200 projects in C++. PS As I understand, SonarQube doesn't support generic-language-sensor now. |
To calculate the technical debt you need software metrics.
Try to avoid includeDirectories: https://github.com/SonarOpenCommunity/sonar-cxx/wiki/sonar.cxx.includeDirectories
Think SQ has no interest to provide such a plugin because they like to earn money with their own plugins. They have no interest in supporting external tools. Regards, |
Fix for SonarOpenCommunity#2228 SquidSensor can take significant amount of time on big projects. Skip execution if all appropriate rules are disabled.
Fix for SonarOpenCommunity#2228 SquidSensor can take significant amount of time on big projects. Skip execution if sonar.cxx.squidDisabled parameter is set to true.
Fix for SonarOpenCommunity#2228 SquidSensor can take significant amount of time on big projects. Skip execution if sonar.cxx.squid.disabled parameter is set to true.
closed with #2080 |
Hello.
I have a very big code base. When I import logs of PVS-Studio using this plugin, I should wait several hours.
Because of preprocessor work. I don't need this, so it would be nice to disable some of sensors.
For example, disabling of CxxSquidSensor increases speed of import approximately 5-6 times.
The text was updated successfully, but these errors were encountered: