How to specify version of language to be scanned in sonarqube?

by cortez.connelly , in category: Third Party Scripts , a day ago

How to specify version of language to be scanned in sonarqube?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by domenico , 2 hours ago

@cortez.connelly 

To specify the version of a programming language to be scanned in SonarQube, you can add a property in your project's sonar-project.properties file.


For example, to specify the version of Java to be scanned, you can add the following property:

1
sonar.java.source=11


Replace 11 with the version of Java you are using in your project.


Similarly, for other languages, you can specify the language version using the appropriate property in the sonar-project.properties file.


Once you have specified the language version, you can run the SonarQube scan on your project and the specified language version will be used for analyzing and reporting issues in your code.