Sha256: 3ac62eae50aecce8161ac8f45a7f139228f4a4bfdddc6a0081556de5c04e6f95
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
module SCSSLint # Checks for spaces following the name of a variable and before the colon # separating the variables's name from its value. class SpaceAfterVariableName < Linter include LinterRegistry def visit_variable(node) return unless spaces_before_colon?(node) add_lint(node, 'Variable names should be followed immediately by a colon') end private def spaces_before_colon?(node) source_from_range(node.source_range) =~ /\s+:/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scss_lint-0.40.1 | lib/scss_lint/linter/space_after_variable_name.rb |
scss_lint-0.40.0 | lib/scss_lint/linter/space_after_variable_name.rb |