Sha256: 914b71db567c58d166d92aa1285133362ddb550ebeb1f9c0bcf854d363f4a162
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
module SCSSLint # Checks for trailing whitespace on a line. class Linter::TrailingWhitespace < Linter include LinterRegistry def visit_root(_node) engine.lines.each_with_index do |line, index| next unless line.match?(/[ \t]+$/) add_lint(index + 1, 'Line contains trailing whitespace') end yield end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scss_lint-0.60.0 | lib/scss_lint/linter/trailing_whitespace.rb |
scss_lint-0.59.0 | lib/scss_lint/linter/trailing_whitespace.rb |
scss_lint-0.58.0 | lib/scss_lint/linter/trailing_whitespace.rb |