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.
9 10 11 |
# File 'lib/haml_lint/reporter/json_reporter.rb', line 9 def self.available? true end |
Instance Method Details
#display_report(report) ⇒ Object
13 14 15 |
# File 'lib/haml_lint/reporter/json_reporter.rb', line 13 def display_report(report) log.log super.to_json end |