Function: isRuleExcludedForLocation()¶
isRuleExcludedForLocation(
rule,loc,config):boolean
Defined in: validator/src/import-exclusions.ts:154
Check whether a rule is excluded for the given source location.
Exclusion is consumer-declared (promptscript.yaml validation.excludes) and only ever applies to imported content, never to local project files.
Every covering exclude entry is evaluated, so overlapping or repeated entries union their rules. An entry only suppresses findings while its recorded commit matches the commit the lockfile pins for the import; with a missing or stale commit the findings reappear (PS040 reports the mismatch separately). --ignore-hashes skips the binding check.
Parameters¶
rule¶
id¶
string
name¶
string
loc¶
SourceLocation | undefined
config¶
Returns¶
boolean