module HamlLint
  # @abstract Abstract lint reporter. Subclass and override {#report_lints} to
  #   implement a custom lint reporter.
  class Reporter
    attr_reader :lints

    # @param logger [HamlLint::Logger]
    # @param lints [Array<HamlLint::Lint>]
    def initialize(logger, report)
      @log = logger
      @lints = report.lints
    end

    def report_lints
      raise NotImplementedError
    end

    private

    attr_reader :log
  end
end

module HamlLint
  # Abstract lint reporter. Subclass and override {#report_lints} to
  # implement a custom lint reporter.
  #
  # @abstract
  class Reporter
    attr_reader :lints

    # @param logger [HamlLint::Logger]
    # @param report [HamlLint::Report]
    def initialize(logger, report)
      @log = logger
      @lints = report.lints
    end

    # Implemented by subclasses to display lints from a {HamlLint::Report}.
    def report_lints
      raise NotImplementedError
    end

    private

    attr_reader :log
  end
end

Fix documentation for Reporter class
Fix documentation for Reporter class

Change-Id: I324caa5900491528ae26cd38b3f382e0ca9b0c28
Reviewed-on: http://gerrit.causes.com/45311
Reviewed-by: Shane da Silva <67fb7bfe39f841b16a1f86d3928acc568d12c716@brigade.com>
Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@brigade.com>
