class Chercker

Public Instance Methods

run() click to toggle source
# File lib/unrendered-link-checker.rb, line 2
def run
    return unless @options[:check_unrendered_link]
    @html.xpath("//*[text()[contains(.,'][')]]").each do |node|
        line = node.line
        content = node.to_s
        add_issue("Contains unrendered link ][! #{content}", line: line)
      end
end