Skip to content

RepositoryPolicyDefinition

Defined in: policy.ts:134

A policy executed once per invocation, even when the inventory is empty. Fixes are performed in the handler using resolve.

C = void

optional defaultConfig?: C

Defined in: policy.ts:144

Configuration used when no instance configuration is supplied.


description: string

Defined in: policy.ts:138

Description of the policy’s purpose.


handler: RepositoryPolicyHandler<C>

Defined in: policy.ts:142

Checks the repository and applies fixes when resolve is true.


name: string

Defined in: policy.ts:136

Policy name used for display and configuration.


scope: "repository"

Defined in: policy.ts:140

Selects repository-wide execution instead of per-file matching.