Sha256: 00a2b98f82c00859b971a8ba98b0ada957d83dcf5eff91d4bc09600ddf786ba7

Contents?: true

Size: 447 Bytes

Versions: 10

Compression:

Stored size: 447 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|
          sprintf('%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.8.3 lib/rubocop/report/emacs_style.rb
rubocop-0.8.2 lib/rubocop/report/emacs_style.rb
rubocop-0.8.1 lib/rubocop/report/emacs_style.rb
rubocop-0.8.0 lib/rubocop/report/emacs_style.rb
rubocop-0.7.2 lib/rubocop/report/emacs_style.rb
rubocop-0.7.1 lib/rubocop/report/emacs_style.rb
rubocop-0.7.0 lib/rubocop/report/emacs_style.rb
rubocop-0.6.1 lib/rubocop/report/emacs_style.rb
rubocop-0.6.0 lib/rubocop/report/emacs_style.rb
rubocop-0.5.0 lib/rubocop/report/emacs_style.rb