Sha256: 1a3c3ed4d47ba061408c9cd0c93f673a4e13ddcd7c8fe6bfb857b3d2c0d8362e

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

require 'sass'

module SCSSLint
  class Linter::EmptyRuleLinter < Linter
    include LinterRegistry

    def visit_rule(node)
      add_lint(node) if node.children.empty?
      yield # Continue linting children
    end

    def description
      'Empty rule'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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