Skip to content

Commit

Permalink
Always print the full report if more than the max violations are found.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Dec 27, 2017
1 parent 80eb54a commit bdd221f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ public void gitChangelogPluginTasks() throws TaskExecutionException, ScriptExcep
.withViolations(allParsedViolations) //
.getReport(detailLevel);

getLogger().info("\n" + report);

if (allParsedViolations.size() > maxViolations) {
throw new ScriptException(
"To many violations found, max is "
+ maxViolations
+ " but found "
+ allParsedViolations.size());
+ allParsedViolations.size()
+ "\n"
+ report);
} else {
getLogger().info("\n" + report);
}
}
}

0 comments on commit bdd221f

Please sign in to comment.