Sha256: 4f7b347c7d2493a9c96442c40da753a7c2ec7ad6be26a4eb9a83aeca2d7dd678

Contents?: true

Size: 573 Bytes

Versions: 7

Compression:

Stored size: 573 Bytes

Contents

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

    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<String>] a list of the files that were linted
    def initialize(lints, files)
      @lints = lints
      @files = files
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scss_lint-0.43.2 lib/scss_lint/reporter.rb
scss_lint-0.43.1 lib/scss_lint/reporter.rb
scss_lint-0.43.0 lib/scss_lint/reporter.rb
scss_lint-0.42.2 lib/scss_lint/reporter.rb
scss_lint-0.42.1 lib/scss_lint/reporter.rb
scss_lint-0.42.0 lib/scss_lint/reporter.rb
scss_lint-0.41.0 lib/scss_lint/reporter.rb