lib/rubycritic/commands/default.rb in rubycritic-1.3.0 vs lib/rubycritic/commands/default.rb in rubycritic-1.4.0

- old
+ new

@@ -1,9 +1,9 @@ require "rubycritic/source_control_systems/base" require "rubycritic/analysers_runner" require "rubycritic/revision_comparator" -require "rubycritic/reporters/main" +require "rubycritic/reporter" module Rubycritic module Command class Default def initialize(paths) @@ -19,11 +19,10 @@ analysed_modules = AnalysersRunner.new(@paths).run RevisionComparator.new(@paths).set_statuses(analysed_modules) end def report(analysed_modules) - report_location = Reporter::Main.new(analysed_modules).generate_report - puts "New critique at #{report_location}" + Reporter.generate_report(analysed_modules) end end end end