Skip to main content

Module audit_plugin

Module audit_plugin 

Source
Expand description

Automated 10-Pillar Quality Gate and Master Compliance Audit Plugin.

Ports the portfolio master quality gate audit (audit.sh) natively into the SSG compilation pipeline. Evaluates 10 pillars of web quality:

  1. Output & Essential Files (robots.txt, sitemap.xml, manifest.json, rss.xml, search-index.json)
  2. Meta Leaks & Content Hygiene (no unescaped tags in <head>, no escaped entity leaks in <body>)
  3. CSP & Security Integrity (valid Content-Security-Policy with 'unsafe-inline')
  4. SRI Hashes Sync (verifies SHA-384 cryptographic integrity against compiled assets)
  5. Hero Banner Subpage Isolation (prevents full-screen hero leakage onto subpages)
  6. Apple HIG Navbar & Footer Hygiene (valid navbar links, “Made with SSG” in footer, not in top navbar)
  7. Theme, Search & Lightbox Engines (search index excludes utility pages; client runtime presence)
  8. Forms & Link Integrity (functional form actions on contact pages)
  9. CloudCDN Asset Resolution (valid CDN paths)
  10. Accessibility & Semantic Hierarchy (lang attribute, <h1> heading, no empty headings)

Emits quality-gate-report.json in the build output directory.

Structs§

AuditPlugin
Plugin that runs the 10-pillar master quality gate audit on compiled sites.
PillarResult
Pillar result status and issue list.
QualityGateReport
Comprehensive Quality Gate Audit Report.