|
1 | 1 | #![cfg_attr(test, deny(warnings))]
|
2 |
| -// Currently, Cargo does not use clippy for its source code. |
3 |
| -// But if someone runs it they should know that |
4 |
| -// @alexcrichton disagree with clippy on some style things |
5 |
| -#![cfg_attr(feature = "cargo-clippy", allow(explicit_iter_loop))] |
6 |
| -#![cfg_attr(feature = "cargo-clippy", allow(explicit_into_iter_loop))] |
7 |
| -// also we use closures as an alternative to try catch blocks |
8 |
| -#![cfg_attr(feature = "cargo-clippy", allow(redundant_closure_call))] |
9 |
| - |
10 |
| -// we have lots of arguments, cleaning this up would be a large project |
11 |
| -#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] |
12 |
| - |
13 |
| -// we have some complicated functions, cleaning this up would be a large project |
14 |
| -#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))] |
| 2 | + |
| 3 | +// Clippy isn't enforced by CI, and know that @alexcrichton isn't a fan :) |
| 4 | +#![cfg_attr(feature = "cargo-clippy", allow(boxed_local))] // bug rust-lang-nursery/rust-clippy#1123 |
| 5 | +#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))] // large project |
| 6 | +#![cfg_attr(feature = "cargo-clippy", allow(derive_hash_xor_eq))] // there's an intentional incoherence |
| 7 | +#![cfg_attr(feature = "cargo-clippy", allow(explicit_into_iter_loop))] // (unclear why) |
| 8 | +#![cfg_attr(feature = "cargo-clippy", allow(explicit_iter_loop))] // (unclear why) |
| 9 | +#![cfg_attr(feature = "cargo-clippy", allow(identity_op))] // used for vertical alignment |
| 10 | +#![cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))] // large project |
| 11 | +#![cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))] // large project |
| 12 | +#![cfg_attr(feature = "cargo-clippy", allow(redundant_closure_call))] // closures over try catch blocks |
| 13 | +#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] // large project |
| 14 | +#![cfg_attr(feature = "cargo-clippy", allow(type_complexity))] // there's an exceptionally complex type |
| 15 | +#![cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))] // perhaps Rc should be special cased in Clippy? |
15 | 16 |
|
16 | 17 | extern crate atty;
|
17 | 18 | extern crate clap;
|
|
0 commit comments