Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: GROOVY-0.2
-
Fix Version/s: GROOVY-0.3
-
Component/s: Groovy
-
Labels:None
-
Number of attachments :
Description
I can define the property sonar.groovy.codenarc.reportPath property in my pom.xml to point to an existing CodeNarc XML results file. But the code to read the XML results file is not correct. The value of this property is used to get the project property.
In the file GroovySensor.java at line 110:
File codeNarcReport = getReport(project, codeNarcReportPath;
should be:
File codeNarcReport = getReport(project, GroovyPlugin.CODENARC_REPORT_PATH);
Done in r3182.