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 -- \
|
2018-12-16 05:27:43 +03:00
|
|
|
-A clippy::collapsible_if \
|
2018-12-09 05:25:05 +03:00
|
|
|
-A clippy::cyclomatic_complexity \
|
2018-12-09 04:52:19 +03:00
|
|
|
-A clippy::expect_fun_call \
|
|
|
|
-A clippy::if_same_then_else \
|
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 \
|
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::new_without_default_derive \
|
|
|
|
-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-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
|