Groovy
Language-specific information about the way that SonarQube Server supports the analysis of Groovy.
Last updated
Was this helpful?
Language-specific information about the way that SonarQube Server supports the analysis of Groovy.
This feature is in Beta stage. For more information on feature release stages, see Product release lifecycle.
The Groovy analyzer is designed to perform static code analysis on Groovy source code and scripts.
It is compatible with Groovy 4, excluding the incubating features.
You can discover and update the Groovy-specific Analysis parameters by going to Administration > Configuration > General Settings > Languages > Groovy.
See Groovy.
Adding the //NOSONAR comment at the end of the line will suppress all issues on that line.
The check is case-insensitive, so variants like //nosonar also work. Block comments are not supported.
Rather than relying on this method, we suggest refining your analysis scope to avoid creating major gaps in your code review. Because the NOSONAR comment silences all current and future issues on a line without regard for their severity, it is an imprecise tool. Even if you only intend to hide a minor stylistic point, you could unintentionally obscure a serious security flaw.
Last updated
Was this helpful?
Was this helpful?

