Sha256: f8b24c857d9f0c4028f73b88c569dfe8dfb7037896d149e10869cc72a962ed1c

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Report
    # Plain text report, suitable for display in terminals.
    class PlainText < Report
      # Generates a string representation of the report
      def generate
        report = "== #{filename} ==\n".yellow
        report << entries.join("\n")
      end

      def display(stream = $stdout)
        stream.puts generate
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubocop-0.6.0 lib/rubocop/report/plain_text.rb
rubocop-0.5.0 lib/rubocop/report/plain_text.rb
rubocop-0.4.6 lib/rubocop/report/plain_text.rb
rubocop-0.4.5 lib/rubocop/report/plain_text.rb
rubocop-0.4.4 lib/rubocop/report/plain_text.rb
rubocop-0.4.3 lib/rubocop/report/plain_text.rb
rubocop-0.4.2 lib/rubocop/report/plain_text.rb
rubocop-0.4.1 lib/rubocop/report/plain_text.rb
rubocop-0.4.0 lib/rubocop/report/plain_text.rb
rubocop-0.3.2 lib/rubocop/report/plain_text.rb