Bruce_Wen
(Bruce Wen)
November 26, 2020, 1:09pm
1
SonarQube Scanner for Maven 3.7.0.1746
To get a list of all supported parameters or properties
Google
I tried to only analyze a single file an find solution here: https://stackoverflow.com/questions/23513697/any-means-to-run-sonar-analysis-on-a-single-file
However, when I try to get more information about -Dsonar.inclusions property, I cannot even find it from sonarqube document site: https://docs.sonarqube.org/latest/analysis/analysis-parameters/
So, here comes my question: where can I find all supported parameters (properties)
1 Like
Bruce_Wen
(Bruce Wen)
November 26, 2020, 1:17pm
2
I think sonar.sources
plays the same role with sonar.inclusions. And maybe the answer to my question is https://docs.sonarqube.org/latest/analysis/analysis-parameters .
But where is -Dsonar.inclusions? Why no place to introduce it?
Bruce_Wen
(Bruce Wen)
November 26, 2020, 1:18pm
3
Finally, I found it:
But is it deprecated in the latest version?
ganncamp
(G Ann Campbell)
December 3, 2020, 9:02pm
4
Hi,
Welcome to the community!
There are a lot of parameters you can set via analysis parameters. That doesn’t mean you should or that they’re deprecated if they don’t show up there. You’ll find the can-and-should list in the current Analysis Parameters page .
And you’ll find inclusions and exclusions in the UI.
Ann