Skip to content

PromptScript API


Variable: importExcludes

const importExcludes: ValidationRule

Defined in: validator/src/rules/import-excludes.ts:55

PS040: Per-import validation excludes must stay bound to the pinned commit.

Suppression of validation findings is declared by the consumer, never by the scanned content, so an imported file cannot mute its own scan. Every exclude records the commit it was reviewed at; when the lockfile pins a different commit, the exclude stops applying and this rule fails the build with a clear message, forcing the consumer to re-review the new content.