Sha256: 43116418ab592d46f5472fc6cfa525265d317dd40c515ec0cfdf9984538cfe5e
Contents?: true
Size: 389 Bytes
Versions: 9
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true module SlimLint class Linter::Zwsp < Linter include LinterRegistry MSG = 'Remove zero-width space' 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
9 entries across 9 versions & 1 rubygems