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.60.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.59.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.58.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.57.1 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.57.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.56.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.55.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.54.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.53.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.52.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.51.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.50.3 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.50.2 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.50.1 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.50.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.49.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.48.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.47.1 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.47.0 lib/scss_lint/linter/empty_rule.rb
scss_lint-0.46.0 lib/scss_lint/linter/empty_rule.rb