# normalize-native-rules
Native rule check implementations for normalize. Provides built-in checks that run without tree-sitter parsing: `missing-summary`, `stale-summary`, `broken-ref`, `stale-doc`, `missing-example`, `boundary-violations`, `long-file`, `high-complexity`, `long-function`, and several others. Threshold-based rules (`long-file`, `high-complexity`, `long-function`) implement the `FileRule` trait (`cache.rs`) for automatic SQLite-backed per-file caching and parallel rayon execution — each writes results to `findings-cache.sqlite` in a single `BEGIN`/`COMMIT` transaction (WAL + synchronous=NORMAL) so cold runs stay fast. `boundary_violations.rs` implements configurable directory-level import boundary enforcement (default disabled): users declare `"A/ cannot import B/"` pairs in `[rules.rule."boundary-violations"] boundaries` config and the rule queries the structural index's `imports` table to flag violations. `NATIVE_RULES` exports static `NativeRuleDescriptor` metadata for `normalize rules list`. All git operations use `gix` (pure-Rust gitoxide).