I’m using Sonarqube 7.9LTS.But I find a bug,which is I use “mvn sonar:sonar -Dsonar.language=java”,but Sonarqube scan my project with all kinds of codes instead of Java.So should I do what to fix it?
Hi,
That’s not a bug. sonar.language was deprecated literally for years before finally being removed in SonarQube 7.7.
If you really don’t want to analyze all the languages in your project (Why?) then you can either set exclusions or edit the recognized extensions for the unwanted languages. There’s a nice discussion in the docs.
HTH,
Ann
Thanks very much!