Skip to content

PolicyRunner

Defined in: runner.ts:141

Runs configured policies against files and collects results.

new PolicyRunner(options): PolicyRunner

Defined in: runner.ts:156

Creates a runner with stable policy identities and normalized exclusions.

PolicyRunnerOptions

Policies, exclusions, repository root, and execution settings.

PolicyRunner

If instance IDs conflict, repeated policies lack IDs, or concurrency is not a positive safe integer.

run(filePaths, repositoryFiles?): Operation<PolicyRunResults>

Defined in: runner.ts:179

Run file policies on the selection, then repository policies on the full inventory. Supply a loader to refresh the inventory after fixes, including repository fixes.

string[]

Repo-relative paths selected for file-policy checks.

readonly string[] | (() => Promise<readonly string[]>) = filePaths

Full repo-relative inventory or an async loader; defaults to filePaths.

Operation<PolicyRunResults>

An Effection operation yielding findings, fix outcomes, errors, and timing data.