lib/slim_lint/linter/tab.rb in slim_lint-0.15.1 vs lib/slim_lint/linter/tab.rb in slim_lint-0.16.0

- old
+ new

@@ -1,10 +1,12 @@ +# frozen_string_literal: true + module SlimLint # Searches for tab indentation class Linter::Tab < Linter include LinterRegistry - MSG = 'Tab detected'.freeze + MSG = 'Tab detected' on_start do |_sexp| dummy_node = Struct.new(:line) document.source_lines.each_with_index do |line, index| next unless line =~ /^( *)[\t ]*\t/