|
1 | | -#![cfg_attr(test, deny(warnings))] |
2 | | -// While we're getting used to 2018: |
| 1 | +// For various reasons, some idioms are still allow'ed, but we would like to |
| 2 | +// test and enforce them. |
3 | 3 | #![warn(rust_2018_idioms)] |
4 | | -// Clippy isn't enforced by CI (@alexcrichton isn't a fan). |
5 | | -#![allow(clippy::blacklisted_name)] // frequently used in tests |
6 | | -#![allow(clippy::cognitive_complexity)] // large project |
7 | | -#![allow(clippy::derive_hash_xor_eq)] // there's an intentional incoherence |
8 | | -#![allow(clippy::explicit_into_iter_loop)] // explicit loops are clearer |
9 | | -#![allow(clippy::explicit_iter_loop)] // explicit loops are clearer |
10 | | -#![allow(clippy::identity_op)] // used for vertical alignment |
11 | | -#![allow(clippy::implicit_hasher)] // large project |
12 | | -#![allow(clippy::large_enum_variant)] // large project |
13 | | -#![allow(clippy::new_without_default)] // explicit is maybe clearer |
14 | | -#![allow(clippy::redundant_closure)] // closures can be less verbose |
15 | | -#![allow(clippy::redundant_closure_call)] // closures over try catch blocks |
16 | | -#![allow(clippy::too_many_arguments)] // large project |
17 | | -#![allow(clippy::type_complexity)] // there's an exceptionally complex type |
18 | | -#![allow(clippy::wrong_self_convention)] // perhaps `Rc` should be special-cased in Clippy? |
19 | | -#![allow(clippy::write_with_newline)] // too pedantic |
20 | | -#![allow(clippy::inefficient_to_string)] // this causes suggestions that result in `(*s).to_string()` |
21 | | -#![allow(clippy::collapsible_if)] // too pedantic |
| 4 | +#![cfg_attr(test, deny(warnings))] |
| 5 | +// Due to some of the default clippy lints being somewhat subjective and not |
| 6 | +// necessarily an improvement, we prefer to not use them at this time. |
| 7 | +#![allow(clippy::all)] |
22 | 8 | #![warn(clippy::needless_borrow)] |
23 | | -// Unit is now interned, and would probably be better as pass-by-copy, but |
24 | | -// doing so causes a lot of & and * shenanigans that makes the code arguably |
25 | | -// less clear and harder to read. |
26 | | -#![allow(clippy::trivially_copy_pass_by_ref)] |
27 | | -// exhaustively destructuring ensures future fields are handled |
28 | | -#![allow(clippy::unneeded_field_pattern)] |
29 | | -// false positives in target-specific code, for details see |
30 | | -// https://github.com/rust-lang/cargo/pull/7251#pullrequestreview-274914270 |
31 | | -#![allow(clippy::useless_conversion)] |
| 9 | +#![warn(clippy::redundant_clone)] |
32 | 10 |
|
33 | 11 | use crate::core::shell::Verbosity::Verbose; |
34 | 12 | use crate::core::Shell; |
|
0 commit comments