Class: Rubocop::Report::EmacsStyle
- Defined in:
- lib/rubocop/report/emacs_style.rb
Overview
Plain text report, suitable for display in Emacs compilation buffers.
Instance Attribute Summary
Attributes inherited from Report
Instance Method Summary collapse
-
#generate ⇒ Object
Generates a string representation of the report.
Methods inherited from PlainText
Methods inherited from Report
#<<, #empty?, #entries, #initialize
Constructor Details
This class inherits a constructor from Rubocop::Report::Report
Instance Method Details
#generate ⇒ Object
Generates a string representation of the report
8 9 10 11 12 13 14 |
# File 'lib/rubocop/report/emacs_style.rb', line 8 def generate report = entries.map do |e| sprintf('%s:%d: %s: %s', @filename, e.line_number, e.encode_severity, e.) end report.join("\n") end |