sonar-scala / sonar-scala

A free and open-source SonarQube plugin for static code analysis of Scala projects.

Home Page:https://sonar-scala.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sonar-scala debug mode?

h-ngo opened this issue · comments

commented

Does the plugin offer a debug mode?

We enabled sonarqube debug, but doesn't seem to have much info about the plugin process. We are working on optimizing our build time. We noticed that the sonarqube scan takes more than 20mins to complete.

It always got stuck for a long while after outputting:
[sonar-scala-scoverage] The file "...." has no scoverage information ...
[sonar-scala-scoverage] The file "...." has no scoverage information ...
.
.

Before outputting:
The following classes needed for analysis were missing:
org.scalatest.WordSpec
org.scalatest.Matchers
org.scalatest.OptionValues
.
.

I guess that's when sonar-scala performed the analysis? Also, why would it report missing classes on scalatest?

Any help would be greatly appreciated. Thanks in advance.

Does the plugin offer a debug mode?

Yes, I shall make a note about this in the readme when I get the chance. You can run sonar-scala in debug mode by setting the sonar.verbose property to true, e.g. sbt -Dsonar.verbose=true sonarScan if you use sbt-sonar.

@h-ngo, I added a quick note about this at the bottom of this section in the readme.