OverlapAuditor
Pennington.Generation
IBuildAuditor that flags markdown content sources whose AbsoluteContentRoot directories overlap without an explicit ExcludePaths carve-out. Wraps MarkdownSourceOverlapDetector so the same warnings reach the dev overlay (via AuditCache) and the build report.
Properties
Codestring- Stable identifier surfaced on every diagnostic this auditor emits.
Constructors
OverlapAuditor
#public OverlapAuditor(IEnumerable<IContentService> contentServices)
Wires the auditor to the registered content services.
Parameters
contentServicesIEnumerable<IContentService>
Methods
AuditAsync
#public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(BuildAuditContext context, CancellationToken cancellationToken)
Runs the auditor against context and returns its diagnostics.
Parameters
contextBuildAuditContextcancellationTokenCancellationToken
Returns
Task<IReadOnlyList<BuildDiagnostic>>Pennington.Generation.OverlapAuditor
namespace Pennington.Generation;
/// IBuildAuditor that flags markdown content sources whose AbsoluteContentRoot directories overlap without an explicit ExcludePaths carve-out. Wraps MarkdownSourceOverlapDetector so the same warnings reach the dev overlay (via AuditCache) and the build report.
public class OverlapAuditor
{
/// Runs the auditor against context and returns its diagnostics.
public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(BuildAuditContext context, CancellationToken cancellationToken)
;
/// Stable identifier surfaced on every diagnostic this auditor emits.
public string Code { get; }
/// Wires the auditor to the registered content services.
public OverlapAuditor(IEnumerable<IContentService> contentServices)
;
}