Skip to main content

code_moniker_check/
lib.rs

1//! Rules engine for code-moniker. Owns the rule DSL, rule configuration and
2//! profiles, evaluation over the symbol graph, suppression, and the file/project
3//! scan pipeline. Produces structured [`FileReport`]/[`FileError`] values; it
4//! does not render output or own process exit codes — that is the CLI's job.
5
6mod check;
7pub mod scenario;
8
9pub use check::command::{
10	CheckRequest, CheckRun, CheckSkipReason, CheckSummary, DefaultRulesSelection,
11	FailedRuleSummary, FileError, FileReport, FsCheckWorkspace, MemoryCheckWorkspace,
12	RuleSetRequest, SourceReport, ViolationCounts, check_graph_with_config, check_one_file,
13	check_project, check_project_files, check_project_files_workspace, check_project_workspace,
14	check_source_with_config, compiled_specs_with_config,
15};
16pub use check::config::{Config, RuleSeverity, load_with_cli_default_rules, load_with_overrides};
17pub use check::eval::{
18	CompiledRuleSpec, CompiledRules, RuleReport, Violation, compile_rules, evaluate_compiled,
19	rule_report_compiled,
20};
21pub use check::exclude::UriExclusionMatcher;
22pub use check::suppress::apply as apply_suppressions;
23
24pub use check::workspace;