Skip to main content

wowlab_tidy/
lib.rs

1//! Multi-language workspace lint engine.
2
3#![expect(
4    clippy::multiple_crate_versions,
5    reason = "workspace tooling spans dependency families that have not converged on one version"
6)]
7mod glob;
8mod infra;
9mod languages;
10/// Machine-readable rule documentation for language-model consumers.
11pub mod llm;
12mod macros;
13mod registry;
14/// Rule execution, reporting, fixing, and suppression cleanup.
15pub mod runner;
16
17pub(crate) use glob::matches_ignore;
18pub use infra::config::{Config, ConfigError};
19pub(crate) use infra::{
20    ctx::{FileCtx, Violation, violation},
21    fix::Fix,
22};
23pub(crate) use languages::{rust::AstCtx, toml::TomlCtx};
24pub use registry::{
25    ConfigRule, ConfigValue, Example, ParamDefault, ParamType, RuleKind, RuleMeta, RuleParam,
26    Severity, all_rules,
27};
28pub(crate) use registry::{Rule, RuleCheck, RuleFix, RuleInfo};
29#[cfg(test)]
30pub(crate) use test_support::{
31    apply_ast_fixes, apply_ast_tree_fix, apply_line_fixes, apply_toml_fixes, check_source,
32    check_source_ast, check_source_toml, check_workspace_sources,
33};
34
35#[cfg(test)]
36mod test_support;
37
38/// Test-only third-party exports used by the rule harness macros.
39#[cfg(test)]
40#[doc(hidden)]
41pub mod _private {
42    pub use googletest::{gtest, scoped_trace, verify_false, verify_true};
43
44    pub type TestResult<T = ()> = googletest::Result<T>;
45}