Class: HamlLint::Reporter::JsonReporter
- Inherits:
-
HashReporter
- Object
- HamlLint::Reporter
- HashReporter
- HamlLint::Reporter::JsonReporter
- Defined in:
- lib/haml_lint/reporter/json_reporter.rb
Overview
Outputs report as a JSON document.
Class Method Summary collapse
-
.available? ⇒ true
Ensures that the CLI is able to use the the reporter.
Instance Method Summary collapse
Methods inherited from HamlLint::Reporter
available, cli_name, descendants, inherited, #initialize
Methods included from Hooks
#added_lint, #finished_file, #start
Constructor Details
This class inherits a constructor from HamlLint::Reporter
Class Method Details
.available? ⇒ true
Ensures that the CLI is able to use the the reporter.
11 12 13 |
# File 'lib/haml_lint/reporter/json_reporter.rb', line 11 def self.available? true end |
Instance Method Details
#display_report(report) ⇒ Object
15 16 17 |
# File 'lib/haml_lint/reporter/json_reporter.rb', line 15 def display_report(report) log.log super.to_json end |