Sha256: e8f71e2afabc5b607ebc2e3d8e5ea9542d36bced80699a10c01d76fe0f1dc79b
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 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| add_lint(index + 1, 'Opening curly braces ({) should be preceded by one space') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scss-lint-0.21.0 | lib/scss_lint/linter/space_before_brace.rb |