SuppressionsModule
PackageAxial.Guardrails
Parses rule-specific Axial.Guardrails suppression comments.
Only ordinary F# line comments are directives:
// axial-allow-AXG003: foreign callback translates this exception
XML documentation (`///`), block comments, and string contents are not directives. The file-wide form is
`axial-allow-file-AXG001`; it must occur in the leading ordinary-comment block. Both forms are effective only in
exact files declared in `[boundaries].files` in Axial.Guardrails.toml. The old
`axial-allow-effect-file` spelling is not recognized; primitive effect implementations use the capabilities role.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| Prefix | Prefix | No description available. |
| allDirectives | allDirectives sourceText | No description available. |
| allNotes | allNotes sourceText | Notes acknowledge guide findings, never suppress them. |
| guideMessage | guideMessage config ctx message | No description available. |
| validDirectives | validDirectives sourceText | No description available. |
| isAllowed | isAllowed boundaryFiles fileName sourceText line1 ruleId | True when a declared boundary file has a valid suppression for ruleId on the finding line, the line above it, or in its leading comment block. |
Operations
kind:member
kind:member
kind:member
kind:member
kind:member
True when a declared boundary file has a valid suppression for `ruleId` on the finding line,
the line above it, or in its leading comment block.
Parameters
| Name | Type | Description |
|---|---|---|
| boundaryFiles | Set<string> | |
| fileName | string | |
| sourceText | ISourceText | |
| line1 | int | |
| ruleId | string |
Returns
bool

