aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/style.md
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-10-02 09:13:58 +0100
committerAleksey Kladov <[email protected]>2020-10-02 09:13:58 +0100
commit0599e64bb296201b0aa5c637be34e28149d00e5d (patch)
tree67000947cbe688188779b0c66098228929c82369 /docs/dev/style.md
parent505ff4070a3de962dbde66f08b6550cda2eb4eab (diff)
Document Clippy strategy
Diffstat (limited to 'docs/dev/style.md')
-rw-r--r--docs/dev/style.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md
index f0fdb5adc..fb407afcd 100644
--- a/docs/dev/style.md
+++ b/docs/dev/style.md
@@ -371,3 +371,13 @@ After you are happy with the state of the code, please use [interactive rebase](
371 371
372Avoid @mentioning people in commit messages and pull request descriptions(they are added to commit message by bors). 372Avoid @mentioning people in commit messages and pull request descriptions(they are added to commit message by bors).
373Such messages create a lot of duplicate notification traffic during rebases. 373Such messages create a lot of duplicate notification traffic during rebases.
374
375# Clippy
376
377We don't enforce Clippy.
378A number of default lints have high false positive rate.
379Selectively patching false-positives with `allow(clippy)` is considered worse than not using Clippy at all.
380There's `cargo xtask lint` command which runs a subset of low-FPR lints.
381Careful tweaking of `xtask lint` is welcome.
382See also [rust-lang/clippy#5537](https://github.com/rust-lang/rust-clippy/issues/5537).
383Of course, applying Clippy suggestions is welcome as long as they indeed improve the code.