Expand description
Rust unit-isolation lint for inline #[cfg(test)] modules. The AST walk is a
deterministic syn heuristic; its precision limits live in internals/rust/isolation.md.
Re-exports§
pub use crate::violation::Violation;
Enums§
- Language
- The
unit lintlanguage selector.
Functions§
- find_
integration_ violations - Every
no-first-party-doubleviolation in thetests/crates under crate rootroot. An integration test runs first-party code for real, so doubling it is the error; doubling an external crate is fine. - find_
violations - Every isolation violation in the unit source under
scan_root, sorted by(file, line).crate_root’sCargo.tomlnames the external crates, so a scan pointed atsrc/still sees the dependency set.tests/,benches/,examples/, andtarget/are not unit source, so a local build changes no result.