-
Notifications
You must be signed in to change notification settings - Fork 362
sonar.cxx.squid.disabled
Günter Wirth edited this page Nov 13, 2021
·
8 revisions
Part of the cxx plugin is the Squid sensor. The sensor is responsible for the following points:
- Parsing source code files and creating an AST (Abstract Syntax Tree). To be able to parse files error free with the C++ grammar a preprocessor is also called.
- calculate and create software metrics (LoC, Complexity, ...)
- execute cxx rules (checks) by calling the AST with the visitor pattern
- syntax highlighting of source code
Parsing C++ code can be very time consuming, especially if the preprocessor has to include many include files. The processing can therefore take longer.
The configuration of the Squid sensor is done with sonar.cxx.squid.disabled
in the configuration file sonar-project.properties
or SonarQube UI.
Sample for sonar-project.properties:
Disable parsing of source code, syntax highlighting and metric generation. The source files are still indexed, reports can be read and their results displayed. Turning off will speed up reading of source files. The default of the value is False.
sonar.cxx.squid.disabled=True