Skip to content

Commit c01cd6e

Browse files
bors[bot]matklad
andauthored
Merge #6118
6118: Document Clippy strategy r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents e535489 + 0599e64 commit c01cd6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/dev/style.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,13 @@ After you are happy with the state of the code, please use [interactive rebase](
371371

372372
Avoid @mentioning people in commit messages and pull request descriptions(they are added to commit message by bors).
373373
Such messages create a lot of duplicate notification traffic during rebases.
374+
375+
# Clippy
376+
377+
We don't enforce Clippy.
378+
A number of default lints have high false positive rate.
379+
Selectively patching false-positives with `allow(clippy)` is considered worse than not using Clippy at all.
380+
There's `cargo xtask lint` command which runs a subset of low-FPR lints.
381+
Careful tweaking of `xtask lint` is welcome.
382+
See also [rust-lang/clippy#5537](https://github.com/rust-lang/rust-clippy/issues/5537).
383+
Of course, applying Clippy suggestions is welcome as long as they indeed improve the code.

0 commit comments

Comments
 (0)