Sha256: 96d0a83b6875ebd0154f92e6393a66988db8e1322d1075959b6056a48e6707ac

Contents?: true

Size: 418 Bytes

Versions: 7

Compression:

Stored size: 418 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

7 entries across 7 versions & 1 rubygems

Version Path
rubycritic-3.2.0 lib/rubycritic/generators/console_report.rb
rubycritic-3.1.3 lib/rubycritic/generators/console_report.rb
rubycritic-3.1.2 lib/rubycritic/generators/console_report.rb
rubycritic-3.1.1 lib/rubycritic/generators/console_report.rb
rubycritic-3.1.0 lib/rubycritic/generators/console_report.rb
rubycritic-3.0.0 lib/rubycritic/generators/console_report.rb
rubycritic-2.9.4 lib/rubycritic/generators/console_report.rb