Class: SlimLint::Reporter::GithubReporter
- Inherits:
-
Reporter
- Object
- Reporter
- SlimLint::Reporter::GithubReporter
- Defined in:
- lib/slim_lint/reporter/github_reporter.rb
Overview
Outputs lints in a format suitable for GitHub Actions. See https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions/.
Instance Method Summary collapse
Instance Method Details
#display_report(report) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/slim_lint/reporter/github_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_type(lint) print_location(lint) (lint) end end |