Command Overview
beacon rules lint validates rule files and runs their embedded conformance fixtures.
Command syntax
What lint checks
beacon rules lint:
- loads one
.rule.yamlfile or every.rule.yamlfile under a directory - validates rule structure
- compiles CEL expressions against the Beacon endpoint event schema
- enforces maturity gates for
experimental,stable, anddeprecatedrules - runs every embedded fixture and checks the declared verdict
match fixture and at least one no_match fixture.
Examples
Lint the default./rules directory:
Lint default rules directory
Lint a rule directory
Lint one rule
Rule fixture shape
Each fixture declares the expectedverdict and an ordered list of partial Beacon events.
Fixture example
Related
beacon rules fields
Print event fields available to CEL expressions.
beacon rules add
Install validated rules into the local store.

