Sha256: c525bed72fa5207a35610f47ce6863ab8c3cdcd1f5e8bb9e2faed023cc8133be

Contents?: true

Size: 388 Bytes

Versions: 6

Compression:

Stored size: 388 Bytes

Contents

require 'rubycritic/generators/text/list'

module Rubycritic
  module Generator
    class ConsoleReport
      def initialize(analysed_modules)
        @analysed_modules = analysed_modules
      end

      def generate_report
        reports = @analysed_modules.sort.map do |mod|
          Text::List.new(mod).render
        end
        puts reports.join("\n")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubycritic-2.9.2 lib/rubycritic/generators/console_report.rb
rubycritic-2.9.1 lib/rubycritic/generators/console_report.rb
rubycritic-2.9.0 lib/rubycritic/generators/console_report.rb
rubycritic-2.8.0 lib/rubycritic/generators/console_report.rb
rubycritic-2.7.1 lib/rubycritic/generators/console_report.rb
rubycritic-2.7.0 lib/rubycritic/generators/console_report.rb