Skip to content

Commit

Permalink
feat(output): Render inspection errors to STDERR
Browse files Browse the repository at this point in the history
  • Loading branch information
bentolor committed May 23, 2017
1 parent 0e37430 commit c34263e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
| Add documentation about scoping. +
Add more FAQ entries.

| 1.5.3
| Render reported violations to STDERR. This should display them more prominently i.e. in CI environments.

| 1.5.2
| Critical bugfix: Return code not returned on failed analysis. Introduced with 1.5.0.

Expand Down
8 changes: 4 additions & 4 deletions ideainspect.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import java.nio.file.Paths
Note to the reader:
This is my very first Groovy script. Please be nice.
*/
println "= IntellIJ IDEA Code Analysis Wrapper - v1.5.2 - @bentolor"
println "= IntellIJ IDEA Code Analysis Wrapper - v1.5.3 - @bentolor"

// Defaults
def resultDir = "target/inspection-results"
Expand Down Expand Up @@ -351,9 +351,9 @@ private analyzeResult(File resultPath, List<String> acceptedLeves,

if (!fileIssues.empty) {
allGood = false;
println("--- $xmlFileName")
println(fileIssues.join("\n"))
println("")
System.err.println("--- $xmlFileName")
System.err.println(fileIssues.join("\n"))
System.err.println("")
}
}

Expand Down

0 comments on commit c34263e

Please sign in to comment.