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, IndexedCheckWorkspace,
12	MemoryCheckWorkspace, RuleSetRequest, SourceReport, ViolationCounts, check_graph_with_config,
13	check_one_file, check_project, check_project_files, check_project_files_workspace,
14	check_project_workspace, 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, RuleCoverage, RulePathReport, RulePathStep, RuleReport,
19	RuleVerdict, Violation, compile_rules, evaluate_compiled, rule_report_compiled,
20};
21pub use check::exclude::UriExclusionMatcher;
22pub use check::suppress::apply as apply_suppressions;
23pub use check::workspace_eval::{
24	CompiledWorkspaceRules, ScopeKey, WorkspaceEvaluation, WorkspaceGroupResult,
25	WorkspaceLinkageError, WorkspaceSymbolViolation, compile_workspace_rules,
26	evaluate_workspace_rules, evaluate_workspace_rules_linked, evaluate_workspace_rules_linked_in,
27};
28
29pub use check::workspace;