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| if config['allow_single_line_padding'] && node_on_single_line(node) line.scan(/[^"#' ]\{/) do |match| add_lint(index + 1, 'Opening curly brace `{` should be ' << 'preceded by at least one space') end else line.scan(/[^"#'](?