You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: migrate lint configuration to [workspace.lints] in Cargo.toml #1786
Migrate the ad-hoc lint configuration currently spread across .cargo/config.toml RUSTFLAGS and torrust-linting CLI arguments into a single [workspace.lints] section in Cargo.toml, following the idiomatic Cargo approach.
Background
Lint enforcement is split across three places:
.cargo/config.toml RUSTFLAGS — rust-group denials invisible without reading the config
torrust-linting clippy runner — only active when the linter tool runs
Root [lints.clippy] package section — not propagated to other workspace members; also contains a needless_return = "allow" marked # temp allow this lint whose original reason is unknown
Suggested in PR #1784 review by @da2ce7, referencing the torrust-index configuration as the target state.
Spec
Full implementation spec: docs/issues/open/ (after this issue is created the draft will be moved there)
Tasks (summary)
T1: Add [workspace.lints.rust] to root Cargo.toml
T2: Add [workspace.lints.clippy] to root Cargo.toml
T3: Remove lint entries from RUSTFLAGS in .cargo/config.toml
Activity
docs(issues): address Copilot review comments on PR torrust#1788
docs(issues): add specs for issues #1786 and #1787
Merge #1788: docs(issues): add specs for #1786 and #1787, move closed…
Merge #1800: docs(cli): define global CLI output contract ADR (#1798)
chore(workspace): migrate lint configuration to [workspace.lints] in …
chore(workspace): migrate lint configuration to [workspace.lints] in …
Merge #1914: chore(workspace): migrate lint configuration to [workspa…
chore(issues): archive completed issue specs #1507, #1726, #1786, #1904…
Merge #1919: chore(issues): archive completed issue specs #1507, #1726,