-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docs: add note about Cargo.toml lint config #15700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
docs: add note about Cargo.toml lint config #15700
Conversation
|
r? nk9 |
Failed to set assignee to
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please remove the commented out notes before merging. (Please squash that into the existing commit)
book/src/configuration.md
Outdated
[lints.clippy] | ||
enum_glob_use = "deny" | ||
``` | ||
<!-- > **Note:** The `#[lints.clippy]` table in `Cargo.toml` can only be used to set lint levels (`allow`, `warn`, `deny`). To configure a lint's specific behavior (e.g., providing a list of allowed values), you must use a separate `clippy.toml` configuration file. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove
book/src/configuration.md
Outdated
<!-- | ||
> **Note:** This should only be used in cases where other solutions, like `#[allow(clippy::all)]`, are not sufficient. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove
c002e66
to
ef48650
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
changelog: [
clippy
]: clarified that[lints.clippy]
in Cargo.toml only sets lint levels, and other configurations must go inclippy.toml
fixes #12164