lib/scss_lint/linter/debug_linter.rb in scss-lint-0.6 vs lib/scss_lint/linter/debug_linter.rb in scss-lint-0.6.5
- old
+ new
@@ -2,20 +2,14 @@
module SCSSLint
class Linter::DebugLinter < Linter
include LinterRegistry
- class << self
- def run(engine)
- lints = []
- engine.tree.each do |node|
- lints << create_lint(node) if node.is_a?(Sass::Tree::DebugNode)
- end
- lints
- end
+ def visit_debug(node)
+ add_lint(node)
+ end
- def description
- '@debug line'
- end
+ def description
+ '@debug line'
end
end
end