Sha256: 1a233b64ef5e8f15540b4c431ef306ddb0529ad9f7ba520a6924ae89708e0528

Contents?: true

Size: 255 Bytes

Versions: 7

Compression:

Stored size: 255 Bytes

Contents

module SCSSLint
  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

7 entries across 7 versions & 1 rubygems

Version Path
scss-lint-0.13.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.12.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.12.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.11.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.10.1 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.10.0 lib/scss_lint/linter/empty_rule.rb
scss-lint-0.9.0 lib/scss_lint/linter/empty_rule.rb