Sha256: 8d9741fa43734688ae0c936771f98baee4f4cecb45f9ea34f3c15e0d1bc4fa6e

Contents?: true

Size: 293 Bytes

Versions: 14

Compression:

Stored size: 293 Bytes

Contents

module SCSSLint
  # Checks for rules with no content.
  class Linter::EmptyRule < 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

14 entries across 14 versions & 1 rubygems

Version Path
scss-lint-0.20.3 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.20.2 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.20.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.20.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.19.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.18.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.17.3 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.17.2 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.17.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.17.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.16.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.16.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.15.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.14.0 lib/scss_lint/linter/empty_rule.rb