← Rule catalog

Repository · Security

rust_doctor::repo::tracked_secret_file

Remove the file from version control with git rm --cached, rotate what it contains, and add its name to .gitignore so it stays out; the report names the path and never its contents.

Category
Security
Default level
warn
Tier
P1
Producer
Repository

What it reads

What git tracks.

Tier

Serious: worth interrupting other work for.

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::repo::tracked_secret_file=off .
rust-doctor --rule rust_doctor::repo::tracked_secret_file=error .

Set it once in rust-doctor.toml

Other Security rules