问题
We are using SonarQube version 4.3.2 with our Java project. We want to exclude all javascript files which are currently being analyzed. We tried excluding by using *.js in exclusion list, but it did not work. Please help.
回答1:
In your sonar-project.properties, you have two ways to ignore files:
sonar.exclusions=the/full/path/*.xmlwill ignore all.xmlfiles inpath.sonar.exclusions=**/*.xmlwill ignore all.xmlfiles in the folder and sub-folders where you are.
Here are the different wildcards:
* zero or more characters
** zero or more directories
? a single character
You can find more information on Sonar Documentation
回答2:
Following pattern will exclude all javascripts from Sonarcube analysis -
sonar.exclusions=**/*.js
来源:https://stackoverflow.com/questions/25112543/sonarqube-4-3-2-javascript-exclude