Exclude folder from analysis

2019-01-23 23:04发布

问题:

I look through the Internet and tried a million diferent ways, but didn't find an answer.

Is there any way to exclude some folders with source files from the Sonar analysis, when I use maven to launch it (e.g. mvn sonar:sonar)?

回答1:

You can use the "sonar.exclusions" property to exclude source files using patterns: see http://docs.sonarqube.org/display/SONAR/Analysis+Parameters