Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarQube 4.3.2 Javascript exclude [duplicate]

Tags:

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.

like image 316
power Avatar asked Aug 04 '14 05:08

power


People also ask

Can we use SonarQube for Javascript?

You can use sonar. javascript. node. maxspace property to allow the analysis to use more memory.

How do I ignore issues in SonarQube?

You can have SonarQube ignore issues on certain components and against certain coding rules. Go to Administration > General Settings > Analysis Scope > Issues. Note that the properties below can only be set through the web interface because they are multi-valued.


1 Answers

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

like image 192
Jean-Baptiste Martin Avatar answered Nov 04 '22 11:11

Jean-Baptiste Martin