Reputation: 33
I want to know if SonarQube 5.4 supports scala? Can we perform scala analysis with respect to SonarQube? By default SonarQube does java analysis, I want to know if it works with scala because our code is built with sbt.
I've gone through some third party plugins like
Error during SonarQube Scanner execution:
ERROR: You must install a plugin that supports the language 'scala'
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR: SonarQube scanner exited with non-zero code: 1
Upvotes: 0
Views: 1487
Reputation: 53
Currently SonarQube supports Scala
https://www.sonarqube.org/features/multi-languages/scala/
Upvotes: 1
Reputation: 11
I know this is a year old question. But I did integrate sonrqube-6.7.1 successfully in scala project for coverage as well as static code analysis.
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
addSbtPlugin("com.github.mwz" % "sbt-sonar" % "1.6.0")
install sonarscala and scoverage plugins from Sonarqube marketplace
configure sonar-scanner on server and envirnment variable SONAR_SCANNER_HOME = <>
sbt sonarScan - this will publish reports to sonarqube
Upvotes: 0
Reputation: 7564
According to their homepage (https://www.sonarqube.org/features/multi-languages/) Scala is not supported.
Upvotes: 1