abstreet/clippy.sh

31 lines
939 B
Bash
Raw Normal View History

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 \
-A clippy::cognitive_complexity \
-A clippy::collapsible_if \
2018-12-09 04:52:19 +03:00
-A clippy::expect_fun_call \
-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 \
-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 \
-A clippy::unnecessary_unwrap \
-A clippy::useless_format \
-A clippy::while_let_loop \
2018-12-09 05:25:05 +03:00
-A clippy::wrong_self_convention