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.
Type Parameters
Section titled “Type Parameters”C = void
Properties
Section titled “Properties”defaultConfig?
Section titled “defaultConfig?”
optionaldefaultConfig?:C
Defined in: policy.ts:144
Configuration used when no instance configuration is supplied.
description
Section titled “description”description:
string
Defined in: policy.ts:138
Description of the policy’s purpose.
handler
Section titled “handler”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.