Inform-Software / sonar-groovy

SonarQube plugin for Groovy
GNU Lesser General Public License v3.0
55 stars 25 forks source link

Scanner does not populate Codenarc Rules #24

Open DavidZiemann opened 4 years ago

DavidZiemann commented 4 years ago

I am currently setting up SonarQube for a Grails 3 application and have everything up and running except for displaying the Codenarc rules. I have installed the groovy plugin for SonarQube and it is linked to the correct file for reporting the Codenarc results. Additionally, I added all the additional rules it notified me in the scan so I know they are being analyzed. I am currently getting 0 bugs, vulnerabilities, or code smells. Below you can see the logs when I use sonar-scanner -X.

DEBUG: Sensors : CodeNarc -> GroovySensor -> GroovySurefireSensor -> Groovy CoberturaSensor -> Groovy JaCoCo Coverage -> JavaXmlSensor -> SonarCSS Rules -> HTML -> XML Sensor
INFO: Sensor CodeNarc [groovy]
INFO: Sensor CodeNarc [groovy] (done) | time=402ms
INFO: Sensor GroovySensor [groovy]
INFO: Load project repositories

Is there a way to further debug why the codenarc results are not displaying?

Screenshots

Rulesets

image

Repo Overview

image

Codenarc Report

image

Installed Versions

Grails - 3.3.9

SonarQube - 8.2.0.32929 (Docker) Scanner - 4.3.0.2102

Plugins:

DavidZiemann commented 4 years ago

I have also tried SonarQube 7.9 to confirm it was not a version issue and I am running into the same results. I pulled the source code and I am building it locally to identify the issue. From my initial debugging, it looks like the report files are not being generated. I will provide exact information as soon as I identify the exact issue.

TobiX commented 3 years ago

I never used the feature to import external CodeNarc reports... Does it work without the external report and letting Sonar-Groovy use its integrated CodeNarc copy?