Sha256: 11bac374f0f3bbdbb185a83bfc22b07b97de33189d5f163b78844099cebce65c

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 Bytes

Contents

module SCSSLint
  # Checks for spaces following the name of a property and before the colon
  # separating the property's name from its value.
  class Linter::SpaceAfterPropertyName < Linter
    include LinterRegistry

    def visit_prop(node)
      return unless character_at(node.name_source_range.end_pos) != ':'
      add_lint node, 'Property name should be immediately followed by a colon'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
scss-lint-0.29.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.28.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.27.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.26.2 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.26.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.26.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.25.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.25.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.24.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.24.0 lib/scss_lint/linter/space_after_property_name.rb