Sha256: 245735046f8b119ac33d8b2871ab7f3885e8662696ffbf7be5d98c00ce5ae5b2
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
module SCSSLint # Checks for the presence of a single space before an opening brace. class Linter::SpaceBeforeBrace < Linter include LinterRegistry def visit_root(node) engine.lines.each_with_index do |line, index| line.scan /[^"#](?<![^ ] )\{/ do |match| @lints << Lint.new(engine.filename, index + 1, description) end end end def description 'Opening curly braces ({) should be preceded by one space' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scss-lint-0.20.3 | lib/scss_lint/linter/space_before_brace.rb |
scss-lint-0.20.2 | lib/scss_lint/linter/space_before_brace.rb |