Skip to content

reportDiagnostics

reportDiagnostics(found, mode, logger): void

Defined in: packages/pipeline/src/services/pipeline-setup.ts:106

Applies the diagnostics mode to the contract violations found: 'strict' throws them together, 'warn' logs each one, 'off' does nothing.

readonly PipelineBehaviorDiagnostic[]

DiagnosticsMode

Pick<PipelineLogger, "warn">

void

PipelineConfigurationError in 'strict' mode when found is not empty.

const found: PipelineBehaviorDiagnostic[] = [];
createHandlerRunner({ handlerType, kind, plan, method, behaviors, diagnostics: found });
reportDiagnostics(found, 'strict', console);