Search code examples
scalasonarqubesbt

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

  • Sagacify/sonar-scala
  • ncredinburgh/sonar-scalastyle
  • RadoBuransky/sonar-scoverage-plugin

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

Solution

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