fleetlint Policy for a fleet of repositories
v0.3
Getting started

lint/rust-config

clippy lints are configured in Cargo.toml

Severitywarning
Tiersall
Stacksrust
Scopeeach
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

Cargo.toml configures clippy (pedantic warn, unwrap_used/expect_used/panic deny outside tests) in a [lints] table.

Why

Unwrap-driven crashes are the Rust equivalent of swallowed errors.

Check

toml("Cargo.toml") != null && (has(toml("Cargo.toml").lints) || (has(toml("Cargo.toml").workspace) && has(toml("Cargo.toml").workspace.lints)))

Fix

Add the [lints] table from the Rust stack profile.

Agent instruction: Add [lints.rust] and [lints.clippy] tables per the Rust profile to Cargo.toml.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.