class SlimLint::Reporter::DefaultReporter

Outputs lints in a simple format with the filename, line number, and lint message.

Public Instance Methods

display_report(report) click to toggle source
# File lib/slim_lint/reporter/default_reporter.rb, line 7
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)
    print_message(lint)
  end
end

Private Instance Methods

print_location(lint) click to toggle source
print_message(lint) click to toggle source
print_type(lint) click to toggle source