Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 05c03bd

Browse files
authored
Merge pull request #1439 from nickolay/clippy_preference-docs
Clarify how clippy_preference works in README
2 parents 20e3268 + f6a7f97 commit 05c03bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ Currently we accept the following options:
129129
* `clippy_preference` (`String`, defaults to `"opt-in"`) controls eagerness of clippy
130130
diagnostics when available. Valid values are _(case-insensitive)_:
131131
- `"off"` Disable clippy lints.
132-
- `"opt-in"` Clippy lints are shown when crates specify `#![warn(clippy)]`.
133-
- `"on"` Clippy lints enabled for all crates in workspace.
132+
- `"on"` Display the same diagnostics as command-line clippy invoked with no arguments (`clippy::all` unless overridden).
133+
- `"opt-in"` Only display the lints [explicitly enabled in the code](https://github.com/rust-lang/rust-clippy#allowingdenying-lints). Start by adding `#![warn(clippy::all)]` to the root of each crate you want linted.
134134

135135
and the following unstable options:
136136

0 commit comments

Comments
 (0)