Sha256: a1ae0c25524a79853056b2e410866d5f17bba5f2f9b34b6c9b7938535060757e

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

require 'sass'

module SCSSLint
  class Linter::SingleLinePerSelector < Linter
    include LinterRegistry

    def visit_rule(node)
      add_lint(node) unless node.rule.grep(/,[^\n]/).empty?
      yield # Continue linting children
    end

    def description
      'Each selector should be on its own line'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scss-lint-0.6.7 lib/scss_lint/linter/single_line_per_selector_linter.rb
scss-lint-0.6.6 lib/scss_lint/linter/single_line_per_selector_linter.rb
scss-lint-0.6.5 lib/scss_lint/linter/single_line_per_selector_linter.rb