lib/scss_lint/linter.rb in scss-lint-0.12.1 vs lib/scss_lint/linter.rb in scss-lint-0.13.0

- old
+ new

@@ -1,16 +1,18 @@ module SCSSLint + # Defines common functionality available to all linters. class Linter < Sass::Tree::Visitors::Base include SelectorVisitor include Utils - attr_reader :engine, :lints + attr_reader :config, :engine, :lints def initialize @lints = [] end - def run(engine) + def run(engine, config) + @config = config @engine = engine visit(engine.tree) end # Define if you want a default message for your linter