SonarQube 4.3.2 Javascript exclude

sonarqube

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.

Best Solution

In your sonar-project.properties, you have two ways to ignore files:

  • sonar.exclusions=the/full/path/*.xml will ignore all .xml files in path.
  • sonar.exclusions=**/*.xml will ignore all .xml files 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

Related Question