Class: LiquidLint::Reporter::EmacsReporter
- Inherits:
-
LiquidLint::Reporter
- Object
- LiquidLint::Reporter
- LiquidLint::Reporter::EmacsReporter
- Defined in:
- lib/liquid_lint/reporter/emacs_reporter.rb
Overview
Outputs lints in format: filename:line:column: kind: message.
Instance Method Summary collapse
Methods inherited from LiquidLint::Reporter
descendants, inherited, #initialize
Constructor Details
This class inherits a constructor from LiquidLint::Reporter
Instance Method Details
#display_report(report) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/liquid_lint/reporter/emacs_reporter.rb', line 6 def display_report(report) sorted_lints = report.lints.sort_by { |l| [l.filename, l.line] } sorted_lints.each do |lint| print_location(lint) print_type(lint) (lint) end end |