Skip to content

RepositoryPolicyArgs

Defined in: policy.ts:107

Arguments for a policy that runs once against the repository.

C = void

optional config?: C

Defined in: policy.ts:44

Optional configuration for the policy.

Omit.config


files: readonly string[]

Defined in: policy.ts:110

Full file inventory after global and per-policy exclusions, not stdin selection.


resolve: boolean

Defined in: policy.ts:39

If true, the handler should resolve any violations automatically if possible.

PolicyArgs.resolve


root: string

Defined in: policy.ts:34

Absolute path to the root of the repo.

PolicyArgs.root