← Rule catalog

Structure · Reliability

rust_doctor::structure::crate_level_allow

Scope the allow to the item that needs it; a file-wide or module-wide exemption, reasoned or not, also silences every future finding in its reach.

Category
Reliability
Default level
warn
Tier
P2
Producer
Structure

What it reads

Complexity, and families of near-duplicate code.

Tier

Ordinary defect.

The tier bounds how severe a rule may be; its category bounds the tier.

Change it

Turn it off, or make it blocking, without touching the code it flags:

rust-doctor --rule rust_doctor::structure::crate_level_allow=off .
rust-doctor --rule rust_doctor::structure::crate_level_allow=error .

Set it once in rust-doctor.toml

Other Reliability rules