← Rule catalog

Repository · Dependencies

Binary's Cargo.lock ignored by git

rust_doctor::repo::ignored_lockfile

Remove Cargo.lock from .gitignore and commit it, so CI and every clone of this binary resolve the dependency versions that were tested.

Category
Dependencies
Default level
warn
Tier
P2
Producer
Repository
Diff scope
line

Not a defect when

The repository builds only libraries, or the ignored lockfile belongs to an example that CI deliberately resolves fresh against the latest compatible versions.

What it reads

What git tracks.

Tier

Ordinary defect.

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

Diff scope

The changed line itself.

What --scope contextual looks at to decide whether a change caused the finding.

Change it

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

rust-doctor --rule rust_doctor::repo::ignored_lockfile=off .
rust-doctor --rule rust_doctor::repo::ignored_lockfile=error .

Set it once in rust-doctor.toml

Other Dependencies rules