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.
You can use sonar. javascript. node. maxspace property to allow the analysis to use more memory.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With