class

Analyzer::Specification::Netlify

Inherits Analyzer::Specification::SpecificationEngine < Analyzer < FileHelper < Reference < Object

Constants

ABSOLUTE_SOURCE_RE = /\A[a-z][a-z0-9+.-]*:\/\/([^\/]+)(\/.*)?\z/i

A _redirects / netlify.toml source may be a bare path (/blog/*) or a fully-qualified URL for a domain-level rule (https://old.example.com/* https://new.example.com/:splat 301!).

DEFAULT_METHOD = "ANY"
TOML_STRING_ASSIGNMENT_RE = /\A\s*([A-Za-z_]+)\s*=\s*"([^"]*)"/
TOML_TABLE_HEADER_RE = /\A\s*\[\[?([^\]]*)\]/

Line shapes parse_toml_fallback reads. Any [...] / [[...]] line is a header, quoted keys ([context."deploy-preview"]) included, so a table the scan does not read always ends the one before it.

Class methods

tech_name
Source

Instance methods

analyze
Source
tech

Instance-side view of the same declaration. The per-file rescues live on this base class, which has no way to name the analyzer that is running inside them, so a skipped file could not be attributed to a tech. Deriving it from analyzer_for keeps the name written exactly once.

Source