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

NameSignatureSynopsis
Operations
PrefixPrefix No description available.
allDirectivesallDirectives sourceTextNo description available.
allNotesallNotes sourceTextNotes acknowledge guide findings, never suppress them.
guideMessageguideMessage config ctx messageNo description available.
validDirectivesvalidDirectives sourceTextNo description available.
isAllowedisAllowed boundaryFiles fileName sourceText line1 ruleIdTrue 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

Prefix

Prefix
Member

Returns

string
kind:member

allDirectives

allDirectives sourceText
Member

Parameters

NameTypeDescription
sourceTextISourceText

Returns

Directive list
kind:member

allNotes

allNotes sourceText
Member
Notes acknowledge guide findings, never suppress them. Reuse the ordinary-comment lexer so quoted documentation and string contents cannot acknowledge a finding.

Parameters

NameTypeDescription
sourceTextISourceText

Returns

Directive list
kind:member

guideMessage

guideMessage config ctx message
Member

Parameters

NameTypeDescription
configConfig
ctxCliContext
messageMessage

Returns

Message
kind:member

validDirectives

validDirectives sourceText
Member

Parameters

NameTypeDescription
sourceTextISourceText

Returns

Directive list
kind:member

isAllowed

isAllowed boundaryFiles fileName sourceText line1 ruleId
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

NameTypeDescription
boundaryFilesSet<string>
fileNamestring
sourceTextISourceText
line1int
ruleIdstring

Returns

bool