Skip to content

Commit

Permalink
Merge pull request #89 from avioconsulting/bugfix/generateReportsWith…
Browse files Browse the repository at this point in the history
…RelativePaths

Remove absolute base path from Sonar issues for json report
  • Loading branch information
manikmagar authored Nov 12, 2021
2 parents 503d1af + 2fc4af2 commit b60a6ef
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class RuleExecutor {
SonarQubeReport sq = new SonarQubeReport();

results.each { violation ->
violation.setFileName(violation.getFileName() - (application.getApplicationPath().absolutePath + "/"))
sq.getIssues().add( new SonarQubeReport.SonarQubeReportIssues(violation) )
}
String prettyJsonString = gson.toJson(sq)
Expand Down

0 comments on commit b60a6ef

Please sign in to comment.