Sha256: fe2542626a068cdbb62047808e220f6c5d697af082400a15bcfee136cd91df19

Contents?: true

Size: 419 Bytes

Versions: 33

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

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

33 entries across 33 versions & 2 rubygems

Version Path
rubycritic-4.9.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.9.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.8.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.8.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.7.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.6.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.6.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.5.2 lib/rubycritic/generators/console_report.rb
rubycritic-4.5.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.5.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.4.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.4.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.3.3 lib/rubycritic/generators/console_report.rb
rubycritic-4.3.2 lib/rubycritic/generators/console_report.rb
rubycritic-4.3.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.3.0 lib/rubycritic/generators/console_report.rb
rubycritic-4.2.2 lib/rubycritic/generators/console_report.rb
rubycritic-4.2.1 lib/rubycritic/generators/console_report.rb
rubycritic-4.2.0 lib/rubycritic/generators/console_report.rb
rubycritic-simplecov-4.1.1 lib/rubycritic/generators/console_report.rb