Sha256: 2e350e9d350ebf91773cb993a5605286f08d2f021225a8a1d0723e079a27a439

Contents?: true

Size: 259 Bytes

Versions: 58

Compression:

Stored size: 259 Bytes

Contents

module SCSSLint
  # Checks for rules with no content.
  class Linter::EmptyRule < Linter
    include LinterRegistry

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

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
scss_lint-0.45.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.44.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.43.2 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.43.1 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.43.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.42.2 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.42.1 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.42.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.41.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.40.1 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.40.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.39.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.38.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.38.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-bliss-1.0.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.37.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.36.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.36.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.35.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.34.0 lib/scss_lint/linter/empty_rule.rb