lib/pelusa/runner.rb in pelusa-0.1.1 vs lib/pelusa/runner.rb in pelusa-0.2.0
- old
+ new
@@ -12,21 +12,12 @@
# Public: Runs the analyzer on a set of files.
#
# Returns an Array of Reports of those file runs.
def run(files)
- reporters = Array(files).map do |file|
+ Array(files).map do |file|
run_file(file)
end
- @reporter.print_banner
-
- exit_code = 0
-
- reporters.each do |reporter|
- reporter.report
- exit_code = 1 unless reporter.successful?
- end
- exit_code
end
# Public: Runs the analyzer on a single file.
#
# Returns a Report of the single run.