Sha256: e0478a80600007b752365202b17985150e56ba6004a783aab1948b9550d1ec9b

Contents?: true

Size: 452 Bytes

Versions: 10

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Report
    # Plain text report, suitable for display in Emacs *compilation* buffers.
    class EmacsStyle < PlainText
      # Generates a string representation of the report
      def generate
        report = entries.map do |e|
          '%s:%d: %s: %s' % [@filename, e.line_number, e.encode_severity,
                             e.message]
        end
        report.join("\n")
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubocop-0.4.6 lib/rubocop/report/emacs_style.rb
rubocop-0.4.5 lib/rubocop/report/emacs_style.rb
rubocop-0.4.4 lib/rubocop/report/emacs_style.rb
rubocop-0.4.3 lib/rubocop/report/emacs_style.rb
rubocop-0.4.2 lib/rubocop/report/emacs_style.rb
rubocop-0.4.1 lib/rubocop/report/emacs_style.rb
rubocop-0.4.0 lib/rubocop/report/emacs_style.rb
rubocop-0.3.2 lib/rubocop/report/emacs_style.rb
rubocop-0.3.1 lib/rubocop/report/emacs_style.rb
rubocop-0.3.0 lib/rubocop/report/emacs_style.rb