class HamlLint::Reporter::JsonReporter

Outputs report as a JSON document.

Public Class Methods

available?() click to toggle source

Ensures that the CLI is able to use the the reporter.

@return [true]

# File lib/haml_lint/reporter/json_reporter.rb, line 10
def self.available?
  true
end

Public Instance Methods

display_report(report) click to toggle source
# File lib/haml_lint/reporter/json_reporter.rb, line 14
def display_report(report)
  log.log super.to_json
end