Class: TRMNLP::Lint::Checks::ImageLinksReachable

Inherits:
TRMNLP::Lint::Check show all
Defined in:
lib/trmnlp/lint/checks/image_links_reachable.rb

Overview

Flags static <img> URLs that answer with a non-success status. A network failure (offline, DNS, timeout) is NOT a plugin defect, so those are skipped rather than reported as one.

Constant Summary collapse

MESSAGE =
'One or more <img> tags has a static "src" URL that does not ' \
'respond to HTTP GET requests with a success code.'
TIMEOUT =
5
UNREACHABLE =
[SocketError, Net::OpenTimeout, Net::ReadTimeout,
Errno::ECONNREFUSED, Errno::EHOSTUNREACH, OpenSSL::SSL::SSLError].freeze

Method Summary

Methods inherited from TRMNLP::Lint::Check

#initialize, #issues

Constructor Details

This class inherits a constructor from TRMNLP::Lint::Check