sushma bandari
sushma bandari

Reputation: 33

Scala analysis with SonarQube 5.4

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

Answers (3)

pablopaho
pablopaho

Reputation: 53

Currently SonarQube supports Scala

https://www.sonarqube.org/features/multi-languages/scala/

Upvotes: 1

sainath cholkar
sainath cholkar

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.

  1. For code coverage report using scoverage

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")

  1. For code analysis using below plugin

addSbtPlugin("com.github.mwz" % "sbt-sonar" % "1.6.0")

  1. install sonarscala and scoverage plugins from Sonarqube marketplace

  2. configure sonar-scanner on server and envirnment variable SONAR_SCANNER_HOME = <>

  3. sbt sonarScan - this will publish reports to sonarqube

Upvotes: 0

Harald Gliebe
Harald Gliebe

Reputation: 7564

According to their homepage (https://www.sonarqube.org/features/multi-languages/) Scala is not supported.

Upvotes: 1

Related Questions