Sha256: 0b01a4cebd054ae0209af2d4b8df0b4a3b9495fa7989fca6a68dc63ceb363d66
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
module SlimLint # Searches for tags with uppercase characters. class Linter::TagCase < Linter include LinterRegistry on [:html, :tag] do |sexp| _, _, name = sexp next unless name =~ /[A-Z]/ report_lint(sexp, "Tag `#{name}` should be written as `#{name.downcase}`") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slim_lint-0.2.0 | lib/slim_lint/linter/tag_case.rb |