IRenderedAuditor
Pennington.Generation
A build-time auditor that needs the post-pipeline rendered HTML for each page. Runs after every IBuildAuditor in AuditRunner and writes into the same IAuditCache, so consumers (the dev overlay, the build report) don't need to know which interface produced a given diagnostic.
Prefer IBuildAuditor when a structural check on Pages is enough — this seam is for checks (broken links, accessibility passes, etc.) that genuinely need rendered markup. Each rendered audit costs an HTTP self-dispatch per page.
Properties
Codestring- Stable identifier for the auditor (e.g.
content.links).
Methods
AuditAsync
#public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(RenderedAuditContext context, CancellationToken cancellationToken)
Runs the auditor against context and returns its diagnostics.
Parameters
contextRenderedAuditContextcancellationTokenCancellationToken
Returns
Task<IReadOnlyList<BuildDiagnostic>>Pennington.Generation.IRenderedAuditor
namespace Pennington.Generation;
/// A build-time auditor that needs the post-pipeline rendered HTML for each page. Runs after every IBuildAuditor in AuditRunner and writes into the same IAuditCache, so consumers (the dev overlay, the build report) don't need to know which interface produced a given diagnostic. Prefer IBuildAuditor when a structural check on Pages is enough — this seam is for checks (broken links, accessibility passes, etc.) that genuinely need rendered markup. Each rendered audit costs an HTTP self-dispatch per page.
public interface IRenderedAuditor
{
/// Runs the auditor against context and returns its diagnostics.
public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(RenderedAuditContext context, CancellationToken cancellationToken)
;
/// Stable identifier for the auditor (e.g. content.links).
public string Code { get; }
}