Class: HamlLint::Reporter::JsonReporter
- Inherits:
-
Reporter::HashReporter
- Object
- 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
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 |