Closed mxt33 closed 7 years ago
Indeed, the sonar.groovy.codenarc.reportPath
accepts only 1 file.
If I understand correctly your context @markandirene , the 3 files that are generated target 3 different parts of your code: the main source code, the unit test code, and the integration test code. In SonarQube, apart from some special cases, we generally attach issues only to main source code. So I'd say that you just have to point to the main.xml
file and ignore the other ones - unfortunately, waiting that someone implements this feature.
this should be relatively easy as parseReport
already accepts multiple files
Could you change your pull request to include a new property sonar.groovy.codenarc.reportPaths for multiple paths? That is the style used with other sonar plugins.
@pmayweg would you mind to release a final version of this so it can be found by Sonar updates?
Hello
I have a Grails project configured with (build.gradle):
This generates 3 XML files (~\myproject\build\reports\codenarc): main.xml, test.xml and integrationTest.xml
According to: sonar-groovy
"It is possible to reuse a previously generated report from CodeNarc by setting the sonar.groovy.codenarc.reportPath property."
I cannot seem to set sonar.groovy.codenarc.reportPath to multiple XML files. Any ideas?
Thanks
Mark