Sha256: 69f5f4a15b2eab3c7e08f11bf4712e7544417c0370fcdfe2f1e938631d9a5a68

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

module SCSSLint
  class Linter < Sass::Tree::Visitors::Base
    include LinterRegistry

    attr_reader :engine, :lints

    def initialize
      @lints = []
    end

    def run(engine)
      @engine = engine
      visit(engine.tree)
    end

    def description
      nil
    end

  protected

    # Helper for creating lint from a parse tree node
    def add_lint(node)
      @lints << Lint.new(node.filename, node.line, description)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scss-lint-0.6.7 lib/scss_lint/linter.rb
scss-lint-0.6.6 lib/scss_lint/linter.rb
scss-lint-0.6.5 lib/scss_lint/linter.rb