Expand description
Rust unit-isolation lint: an inline #[cfg(test)] mod may call and import only into the
unit under test, its parent module reached via super::. The AST walk is the deterministic
syn heuristic; its design and 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 crate root
root, sorted by(file, line).root’sCargo.tomlnames the external crates.tests/,benches/,examples/, andtarget/are not unit source, so a local build changes no result.