lib/scss_lint/reporter.rb in scss_lint-0.43.2 vs lib/scss_lint/reporter.rb in scss_lint-0.44.0
- old
+ new
@@ -1,18 +1,20 @@
module SCSSLint
# Responsible for displaying lints to the user in some format.
class Reporter
- attr_reader :lints, :files
+ 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<String>] a list of the files that were linted
- def initialize(lints, files)
+ # @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