Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run analysis for a project only with a set of specified languages

Sonar scanner runs analysis for all the available plugins installed in SonarQube. But for some of the projects analysis should be run only for some languages(For example Java and Javascript). sonar.language parameter allows me to set only one language. Is there any way to set multiple languages for analysis.

like image 909
Manoj Kumar Avatar asked Jan 29 '23 10:01

Manoj Kumar


1 Answers

Stop thinking in term of language, since this is a blur concept in SonarQube. Just exclude the files you don't want to analyze, using for example the property sonar.exclusions.

For example, when considering a pom.xml file, the "language" was historically XML (and rules provided by SonarXML). But we now also have rules provided by SonarJava.

like image 63
Julien H. - SonarSource Team Avatar answered May 24 '23 13:05

Julien H. - SonarSource Team