Sha256: 4e7dc69eae23400f917195d5c05e4602968b1f0afaf471ff1af8833fa19ee70d
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scss-lint-0.20.1 | lib/scss_lint/linter/space_before_brace.rb |