class SCSSLint::Reporter
Responsible for displaying lints to the user in some format.
Attributes
files[R]
lints[R]
log[R]
Public Class Methods
descendants()
click to toggle source
# File lib/scss_lint/reporter.rb, line 6 def self.descendants ObjectSpace.each_object(Class).select { |klass| klass < self } end
new(lints, files, logger)
click to toggle source
@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]
# File lib/scss_lint/reporter.rb, line 13 def initialize(lints, files, logger) @lints = lints @files = files @log = logger end
Public Instance Methods
report_lints()
click to toggle source
# File lib/scss_lint/reporter.rb, line 19 def report_lints raise NotImplementedError, 'You must implement report_lints' end