Skip to content

Commit

Permalink
Fixed typo in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
arburk committed Jun 6, 2021
1 parent a444ba9 commit e015f0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ Run to execute ```mvn codeql2sonar:SonarIssueReporter```
```
When using on command line with __-Dcodeql2sonar.sarif.path.exclude=__ the paths can be separated by comma, e.g.
```
-Dcodeql2sonar.sarif.path.exclude=path/subdir1,path/subdir2/
-Dcodeql2sonar.sarif.path.excludes=path/subdir1,path/subdir2/
```
5 changes: 4 additions & 1 deletion src/main/java/com/baloise/open/maven/SonarIssueReporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ private Writer getWriter() throws IOException {
}

private void writeResult(SonarIssueMapper sonarIssueMapper, Writer writer) throws IOException {
final Issues mappedIssues = sonarIssueMapper.getMappedIssues(getPatternsToExclude());
final String[] patternsToExclude = getPatternsToExclude();
getLog().debug("patterns to exclude: " + Arrays.toString(patternsToExclude));

final Issues mappedIssues = sonarIssueMapper.getMappedIssues(patternsToExclude);
getLog().info(String.format("Writing target '%s' containing %d issues.", target, mappedIssues.getResult().size()));

new GsonBuilder().setPrettyPrinting().create().toJson(mappedIssues, writer);
Expand Down

0 comments on commit e015f0a

Please sign in to comment.