Sha256: 1a78cf28531f37dcf1488ac80ab468550c80edd4cc0e09e6ec96065e1848ea7f

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 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|
          "#@filename:#{e.line_number}: #{e.encode_severity}: #{e.message}"
        end
        report.join("\n")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-0.2.1 lib/rubocop/report/emacs_style.rb
rubocop-0.2.0 lib/rubocop/report/emacs_style.rb