Skip to content

Commit

Permalink
Remove absolute base path from Sonar issues for json report
Browse files Browse the repository at this point in the history
  • Loading branch information
tprincipi-avio committed Nov 4, 2021
1 parent 93a1ce2 commit 2fc4af2
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 2fc4af2

Please sign in to comment.