2018-12-09 04:52:19 +03:00
|
|
|
#!/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
|
2018-12-09 07:02:21 +03:00
|
|
|
# TODO Report issues for some of these false positives
|
2018-12-09 04:52:19 +03:00
|
|
|
cargo clippy -- \
|
2019-05-29 22:55:34 +03:00
|
|
|
-A clippy::block_in_if_condition_stmt \
|
2019-06-12 19:42:34 +03:00
|
|
|
-A clippy::cognitive_complexity \
|
2018-12-16 05:27:43 +03:00
|
|
|
-A clippy::collapsible_if \
|
2018-12-09 04:52:19 +03:00
|
|
|
-A clippy::expect_fun_call \
|
2019-04-22 23:19:36 +03:00
|
|
|
-A clippy::float_cmp \
|
2018-12-09 04:52:19 +03:00
|
|
|
-A clippy::if_same_then_else \
|
2019-05-29 22:55:34 +03:00
|
|
|
-A clippy::len_without_is_empty \
|
2018-12-09 07:02:21 +03:00
|
|
|
-A clippy::large_enum_variant \
|
2019-01-31 01:23:37 +03:00
|
|
|
-A clippy::many_single_char_names \
|
2018-12-09 07:02:21 +03:00
|
|
|
-A clippy::map_entry \
|
2019-09-19 20:42:16 +03:00
|
|
|
-A clippy::match_wild_err_arm \
|
2018-12-09 04:52:19 +03:00
|
|
|
-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 \
|
2018-12-09 05:25:05 +03:00
|
|
|
-A clippy::too_many_arguments \
|
|
|
|
-A clippy::type_complexity \
|
2019-10-28 22:40:09 +03:00
|
|
|
-A clippy::unnecessary_unwrap \
|
2019-01-31 01:23:37 +03:00
|
|
|
-A clippy::while_let_loop \
|
2018-12-09 05:25:05 +03:00
|
|
|
-A clippy::wrong_self_convention
|