Rust Doctor: know if your Rust code is actually healthy.
A code health scanner for Cargo workspaces. Find issues across security, performance, correctness, architecture, and dependencies.
Terminal - rust-doctor
~
npx rust-doctor@latest

rust-doctorBotreviewed 2 days ago
src/db/pool.rs
27
let url = "postgres://admin:••••@db/prod";28
let pool = PgPool::connect(url).await?;rust-doctorrepo::hardcoded_credential(error)
Move the credentials to an environment variable and load them at runtime before opening the pool.
repo::hardcoded_credentialReviews every pull request
Every pull request gets a detailed report on the exact lines that introduced an issue, each one explaining the problem in plain English and suggesting a concrete fix you can apply right away.
Quality checks have failed
1 failing check
Merging is blocked
The configured quality threshold must pass.
Blocks regressions before they merge
Run the same scanner in GitHub Actions, publish its report, and fail the check at the severity threshold your repository sets.