Sha256: a9233058612c9c0da9c3f8604caf1796b5798c9c3b64ba0ae612492109370f6e
Contents?: true
Size: 481 Bytes
Versions: 14
Compression:
Stored size: 481 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 ({) must be preceded by one space' end end end
Version data entries
14 entries across 14 versions & 1 rubygems