GuardrailConfigModule
PackageAxial.Guardrails
Which guardrails run, their declared boundary files, and the checked-in violation baseline.
`build/Axial.Guardrails.targets` writes the resolved MSBuild items to a tab-separated config file:
guardrail <name>
boundary <absolute file path>
generated <absolute file path> (a compile item under the project's intermediate output directory)
baseline <rule id> <repository-relative file> <fingerprint>[ x<count>]
setting baselineRoot|baselineOutput|nativeAot|checkpoint|severityCap <value>
rule <id> <guardrail> <category> <match> <scope> <message> <replacement>
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| EnvironmentVariable | EnvironmentVariable | No description available. |
| defaults | defaults | No description available. |
| parse | parse lines | No description available. |
| rejectRemovedSeverity | rejectRemovedSeverity () | Fail closed even in standalone hosts and on repeated loads; stderr alone cannot fail an analyzer host. |
| load | load () | No description available. |
| fingerprint | fingerprint sourceText message | No description available. |
| relativeFile | relativeFile config fileName | No description available. |
| sourceClassification | sourceClassification config fileName | Classify a compiler source against the configured policy root. |
| isGeneratedSource | isGeneratedSource config fileName | Whether the build declared this source as generated (see GeneratedFiles). |
| ExcludedGeneratedStatus | ExcludedGeneratedStatus | Coverage status of a source the build declared as generated; it counts as complete coverage. |
| isSkippedSource | isSkippedSource config fileName | No description available. |
| resolvedFilePolicy | resolvedFilePolicy config fileName | Applies the enabled guardrail and legacy baseline policy. |
| resolvedPolicy | resolvedPolicy config ctx | No description available. |
| isRuntimeFile | isRuntimeFile config fileName | Whether [runtime].files declares this source: the runtime implements Flow on top of raw tasks. |
| exemptsRawConcurrency | exemptsRawConcurrency config fileName | Raw-concurrency placement exemptions do not require typed facts; Fast and Full share them. |
| usesTestAnalyzerSet | usesTestAnalyzerSet config | No description available. |
| analyzers | analyzers | The single registry of CLI analyzers. |
| reportsInTestSet | reportsInTestSet code | Whether a code is reported in a test project that uses the reduced analyzer set. |
| shouldRunAnalyzer | shouldRunAnalyzer config rule | Selection happens before a rule touches symbols or typed trees; AXG002 still validates directives. |
| runsInProject | runsInProject config code | Whether a project reports a code: all codes outside the reduced test set, otherwise only the test set's. |
| skipReason | skipReason config fileName | Why a repository source cannot be checked as configured, as a sentence for warning AXGINF002, if it cannot. |
| isBoundaryFile | isBoundaryFile config fileName | No description available. |
| applyWith | applyWith config guardrail ctx messages | No description available. |
| capSeverity | capSeverity config messages | Fast never reports a finding as an Error, so the capped fallback turns Error findings into warnings. |
| apply | apply guardrail ctx messages | No description available. |
| applyCore | applyCore ctx messages | No description available. |
Operations
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
Applies the enabled guardrail and legacy baseline policy. Tiered findings and note validation retain their
resolved severity and never generate baseline entries.
Parameters
| Name | Type | Description |
|---|---|---|
| config | Config | |
| fileName | string |
Returns
ResolvedFile option
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
Selection happens before a rule touches symbols or typed trees; AXG002 still validates directives.
An unregistered analyzer runs wherever no selection is made (non-test roles, InTests=all); only the reduced
test set needs its codes, so there it fails closed instead of being silently skipped or run.
Parameters
| Name | Type | Description |
|---|---|---|
| config | Config | |
| rule | string |
Returns
Result<bool, string>
kind:member
kind:member
Why a repository source cannot be checked as configured, as a sentence for warning AXGINF002, if it cannot. Hosts
record this in their build report so every build, including cache replays and reused build nodes, shows it. An
unusable source path means no rule checked the file; an unusable project path means the file was analyzed under the
default policy instead of its project's role. An external source is out of scope, not skipped.
Parameters
| Name | Type | Description |
|---|---|---|
| config | Config | |
| fileName | string |
Returns
string option
kind:member
kind:member
kind:member
kind:member

