Sha256: 53addb4190aed724ca6479364fd0e395cc7d9adbf177cc2604d5eb4f30a18372

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

module SCSSLint
  class Linter::CapitalizationInSelector < Linter
    include LinterRegistry

    def visit_rule(node)
      add_lint(node) if node.rule.first =~ /[A-Z]/

      yield # Continue linting children
    end

    def description
      'Selectors should be lowercase'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scss-lint-0.9.0 lib/scss_lint/linter/capitalization_in_selector.rb