strata check is the core command. It loads your configuration, discovers the
files in each scope, runs the selected rules, and reports every fault it finds. It
is the command you wire into CI.
Usage
Run against the repository described by yourstrata.toml or [tool.strata]:
Arguments and options
| Argument | Description |
|---|---|
paths... | Optional. Check these paths instead of the configured roots. |
--no-color | Disable ANSI color in the output. |
--no-color
forces it off.
Output
When the repository conforms, Strata prints a summary and nothing else:- The first line is the rule code and the message: the concrete contract that was violated.
- The
-->line is the location aspath:line:column, repository-relative so an editor can make it clickable. A file-level fault with no specific line shows-for the line and column. - The source excerpt shows the offending line with a caret under the exact column.
- The
= help:line is the remediation: the normal correction, wrapped at 100 columns.
Exit codes
| Code | Meaning |
|---|---|
0 | No faults found. |
1 | One or more faults found. |
strata check to your pipeline turns
architectural drift into a build failure.
Selecting what runs
strata check runs the rules resolved from your select and ignore
configuration. To narrow a run, adjust those keys rather than the command:
Related
Configuration
Scopes, selection, thresholds, and contracts.
Rule families
What each rule checks.
strata rule
Inspect the full metadata for any code in the output.
strata map
See the structure that check enforces.

