Sha256: 470320a3b3a58dec0519d812dd1cabf24daf46daf6c2faebc33b36de461f2833

Contents?: true

Size: 414 Bytes

Versions: 21

Compression:

Stored size: 414 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)
      if character_at(node.name_source_range.end_pos) != ':'
        add_lint node, 'Property name should be immediately followed by a colon'
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
scss-lint-0.12.0 lib/scss_lint/linter/space_after_property_name.rb