Class: HamlLint::Reporter::DefaultReporter
- Inherits:
-
HamlLint::Reporter
- Object
- HamlLint::Reporter
- HamlLint::Reporter::DefaultReporter
- Includes:
- Utils
- Defined in:
- lib/haml_lint/reporter/default_reporter.rb
Overview
Outputs lints in a simple format with the filename, line number, and lint message.
Instance Method Summary collapse
Methods included from Utils
#pluralize, #print_lint, #print_location, #print_message, #print_summary, #print_summary_files, #print_summary_lints, #print_type
Methods inherited from HamlLint::Reporter
available, available?, cli_name, descendants, inherited, #initialize
Methods included from Hooks
Constructor Details
This class inherits a constructor from HamlLint::Reporter
Instance Method Details
#added_lint(lint) ⇒ Object
9 10 11 |
# File 'lib/haml_lint/reporter/default_reporter.rb', line 9 def added_lint(lint) print_lint(lint) end |
#display_report(report) ⇒ Object
13 14 15 |
# File 'lib/haml_lint/reporter/default_reporter.rb', line 13 def display_report(report) print_summary(report) end |