lib/tailor/cli.rb in tailor-1.2.1 vs lib/tailor/cli.rb in tailor-1.3.0
- old
+ new
@@ -45,10 +45,12 @@
def execute!
@critic.critique(@configuration.file_sets) do |problems_for_file, label|
@reporter.file_report(problems_for_file, label)
end
- @reporter.summary_report(@critic.problems, output_file: @configuration.output_file)
+ @reporter.summary_report(@critic.problems,
+ output_file: @configuration.output_file)
+
@critic.problem_count(:error) > 0
end
# Critiques all file sets, then returns the problems found as a result.
#