[WIP] Support lint level configuration in clippy.toml - #15155
Draft
odysa wants to merge 4 commits into
Draft
Conversation
odysa
force-pushed
the
feat/more-config-path
branch
from
August 9, 2025 04:54
df97a9a to
aa7b2a2
Compare
|
I wanted to mention that the following note in the Lines 229 to 233 in 49e2f37 Additionally, the "Clippy book" confusingly seems to contain very similar information to the I am not sure to what standards changes to the documentation should conform; I just thought I'd point it out. |
This comment has been minimized.
This comment has been minimized.
- Remove outdated note in README.md that clippy.toml cannot be used to allow/deny lints (this was the old behavior before this PR) - Add a `[lints]` section example in README.md showing the new syntax - Add a new "Lints Section in clippy.toml" subsection in book/src/configuration.md documenting the supported format and fields
odysa
force-pushed
the
feat/more-config-path
branch
from
April 9, 2026 09:25
aa7b2a2 to
699ceaa
Compare
Mark find_conf_file_from, read_clippy_toml_overrides_from, and apply_merged_clippy_lints_from_path with #[cfg(test)] since they are only used within the test module. The non-path variant apply_merged_clippy_lints is the one integrated into the driver and remains unconditionally compiled.
Collaborator
|
☔ The latest upstream changes (possibly #17369) made this pull request unmergeable. Please resolve the merge conflicts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
changelog: Add support for lint level configuration in clippy.toml
Fixes #15128
Add support for configuring lint levels in
clippy.tomlusing the same format asCargo.toml. This allows users to move lint configurations fromCargo.tomltoclippy.tomlto keep dependency management and linting separate.Example
clippy.toml: