lib/undercover/cli.rb in undercover-0.3.3 vs lib/undercover/cli.rb in undercover-0.3.4
- old
+ new
@@ -29,12 +29,12 @@
if error
puts(WARNINGS_TO_S[error])
return 0 if error == :no_changes
end
- warnings = report.build_warnings
- puts Undercover::Formatter.new(warnings)
- warnings.any? ? 1 : 0
+ flagged = report.flagged_results
+ puts Undercover::Formatter.new(flagged)
+ flagged.any? ? 1 : 0
end
def self.syntax_version(version)
return unless version