All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.scss_lint-0.57.0.lib.scss_lint.reporter.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
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] a list of Lints sorted by file and line number
    # @param files [List] 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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy