From c34263eeec9da12a17f648b62ee616ca8f646a48 Mon Sep 17 00:00:00 2001 From: Benjamin Schmid Date: Tue, 23 May 2017 14:49:52 +0200 Subject: [PATCH] feat(output): Render inspection errors to STDERR --- CHANGES.asciidoc | 3 +++ ideainspect.groovy | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.asciidoc b/CHANGES.asciidoc index b08273c..b7b3934 100644 --- a/CHANGES.asciidoc +++ b/CHANGES.asciidoc @@ -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. diff --git a/ideainspect.groovy b/ideainspect.groovy index 91f223b..a75bf7a 100755 --- a/ideainspect.groovy +++ b/ideainspect.groovy @@ -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" @@ -351,9 +351,9 @@ private analyzeResult(File resultPath, List 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("") } }