Expand description
Rule orchestration for normalize: syntax rules, fact rules, native checks, and SARIF engines.
This crate owns all rule management logic extracted from the main normalize crate:
runner— unified run, list, show, tags, enable/disable, add/update/removecmd_rules— syntax rule runner (tree-sitter based)loader— diagnostic formatting helpers for fact rulesservice—RulesServicewith#[cli]registration (feature-gated)
The RulesRunConfig struct allows callers to pass rule config without depending on
normalize’s NormalizeConfig (which would create a circular dependency).
Re-exports§
pub use runner::ListFilters;pub use runner::RuleEntry;pub use runner::RuleInfoReport;pub use runner::RuleKind;pub use runner::RulesListReport;pub use runner::RulesRunConfig;pub use runner::RulesTagsReport;pub use runner::TagEntry;pub use runner::abi_diagnostic_to_issue;pub use runner::add_rule;pub use runner::apply_native_rules_config;pub use runner::build_list_report;pub use runner::build_relations_from_index;pub use runner::collect_fact_diagnostics;pub use runner::collect_fact_diagnostics_incremental;pub use runner::enable_disable;pub use runner::finding_to_issue;pub use runner::remove_rule;pub use runner::run_rules_report;pub use runner::run_sarif_tools;pub use runner::show_rule;pub use runner::show_rule_structured;pub use runner::try_rules_via_daemon;pub use runner::update_rules;pub use loader::format_diagnostic;
Modules§
- cmd_
rules - Syntax rule execution helpers.
- loader
- Diagnostic formatting helpers for fact rules.
- runner
- Unified rule management - list, run, add, update, remove rules (syntax + fact).
Structs§
- Rule
Override - Common per-rule configuration fields shared across all rule engines.
- Rules
Config - Rules configuration covering all engines (syntax, fact, native, sarif).
- Sarif
Tool - An external tool that emits SARIF 2.1.0 output (used with
--engine sarif).