forked from a-b-street/abstreet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.sh
executable file
·30 lines (28 loc) · 939 Bytes
/
clippy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# https://github.com/rust-lang/rust-clippy/issues/2604
touch `find * | grep '\.rs' | grep -v target | xargs`
# TODO Remove all of these exceptions
# TODO Report issues for some of these false positives
cargo clippy -- \
-A clippy::block_in_if_condition_stmt \
-A clippy::cognitive_complexity \
-A clippy::collapsible_if \
-A clippy::expect_fun_call \
-A clippy::float_cmp \
-A clippy::if_same_then_else \
-A clippy::len_without_is_empty \
-A clippy::large_enum_variant \
-A clippy::many_single_char_names \
-A clippy::map_entry \
-A clippy::match_wild_err_arm \
-A clippy::needless_pass_by_value \
-A clippy::new_ret_no_self \
-A clippy::new_without_default \
-A clippy::ptr_arg \
-A clippy::suspicious_arithmetic_impl \
-A clippy::too_many_arguments \
-A clippy::type_complexity \
-A clippy::unnecessary_unwrap \
-A clippy::useless_format \
-A clippy::while_let_loop \
-A clippy::wrong_self_convention