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.23.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.23.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.22.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.21.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.20.3 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.20.2 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.20.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.20.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.19.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.18.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.17.3 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.17.2 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.17.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.17.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.16.1 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.16.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.15.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.14.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.13.0 lib/scss_lint/linter/space_after_property_name.rb
scss-lint-0.12.1 lib/scss_lint/linter/space_after_property_name.rb