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.33.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.32.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.31.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.30.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.29.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.28.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.27.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.26.2 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.26.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.26.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.25.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.25.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.24.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.24.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.23.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.23.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.22.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.21.0 lib/scss_lint/linter/empty_rule.rb