Sha256: 88dc322c6895b942baa7749519773079dc80f4d385bc8a351e3ff97385275d82

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

module SlimLint
  class Linter::Zwsp < Linter
    include LinterRegistry

    MSG = 'Remove Zwsp'

    on_start do |_sexp|
      dummy_node = Struct.new(:line)
      document.source_lines.each_with_index do |line, index|
        next unless line.include?("\u200b")

        report_lint(dummy_node.new(index + 1), MSG)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slim_lint-0.23.0 lib/slim_lint/linter/zwsp.rb