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

Findbugs needs sources to be compiled

yael-lorenzo opened this issue · comments

Please build project before executing sonar or check the location of compiled classes to make it possible for Findbugs to analyse your (sub)project (/builds/spiderman).
The situation is that I have the sources in two different folders training and service. This is the sonar-project.properties

sonar.projectKey=spiderman
sonar.sources=spiderman-service/src/main/scala,spiderman-training/src/main/scala
sonar.tests=spiderman-integration-tests/src/test,spiderman-training/src/test

Why is findbugs going to the root folder ?
how can I indicate it to go deeper?
I have tried this

sonar.binaries=spiderman-service/target,spiderman-training/target

but no luck.

I will try sonar.scala.binaries...

I solved like this

sonar.projectKey=spiderman
sonar.modules=spiderman-service,spiderman-training
module1.sonar.projectName=spiderman-service
module2.sonar.projectName=spiderman-training
sonar.language=scala
sonar.scala.version=2.11
spiderman-service.sonar.projectName=spiderman Service
spiderman-training.sonar.projectName=spiderman Training
sonar.sources=src/main/scala
sonar.tests=spiderman-integration-tests/src/test

Glad you got it sorted out.