class ERBLint::Linters::GitHub::Accessibility::ImageHasAlt
Constants
- MESSAGE
Public Instance Methods
run(processed_source)
click to toggle source
# File lib/erblint-github/linters/github/accessibility/image_has_alt.rb, line 15 def run(processed_source) tags(processed_source).each do |tag| next if tag.name != "img" next if tag.closing? alt = possible_attribute_values(tag, "alt") generate_offense(self.class, processed_source, tag) if alt.empty? end rule_disabled?(processed_source) end