Sha256: 3e4fcbf9324cdee98841ba7192e34ecaa6348e66dd8a3755a2434a236b1bba58

Contents?: true

Size: 644 Bytes

Versions: 18

Compression:

Stored size: 644 Bytes

Contents

module SCSSLint
  # Responsible for displaying lints to the user in some format.
  class Reporter
    attr_reader :lints, :files, :log

    def self.descendants
      ObjectSpace.each_object(Class).select { |klass| klass < self }
    end

    # @param lints [List<Lint>] a list of Lints sorted by file and line number
    # @param files [List<Hash>] a list of the files that were linted
    # @param logger [SCSSLint::Logger]
    def initialize(lints, files, logger)
      @lints = lints
      @files = files
      @log = logger
    end

    def report_lints
      raise NotImplementedError, 'You must implement report_lints'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
scss_lint-0.60.0 lib/scss_lint/reporter.rb
scss_lint-0.59.0 lib/scss_lint/reporter.rb
scss_lint-0.58.0 lib/scss_lint/reporter.rb
scss_lint-0.57.1 lib/scss_lint/reporter.rb
scss_lint-0.57.0 lib/scss_lint/reporter.rb
scss_lint-0.56.0 lib/scss_lint/reporter.rb
scss_lint-0.55.0 lib/scss_lint/reporter.rb
scss_lint-0.54.0 lib/scss_lint/reporter.rb
scss_lint-0.53.0 lib/scss_lint/reporter.rb
scss_lint-0.52.0 lib/scss_lint/reporter.rb
scss_lint-0.51.0 lib/scss_lint/reporter.rb
scss_lint-0.50.3 lib/scss_lint/reporter.rb
scss_lint-0.50.2 lib/scss_lint/reporter.rb
scss_lint-0.50.1 lib/scss_lint/reporter.rb
scss_lint-0.50.0 lib/scss_lint/reporter.rb
scss_lint-0.49.0 lib/scss_lint/reporter.rb
scss_lint-0.48.0 lib/scss_lint/reporter.rb
scss_lint-0.47.1 lib/scss_lint/reporter.rb