Sha256: c3d3da2f3ae025b05428cdfa483dd4ade110f7aa55622bf21c51b60559be8f79
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module SlimLint # Checks for forbidden tags. class Linter::Tag < Linter include LinterRegistry on [:html, :tag] do |sexp| _, _, name = sexp forbidden_tags = config['forbidden_tags'] forbidden_tags.each do |forbidden_tag| next unless name[/^#{forbidden_tag}$/i] report_lint(sexp, "Forbidden tag `#{name}` found") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems