abstreet/clippy.sh

27 lines
810 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 -- \
-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::float_cmp \
2018-12-09 04:52:19 +03:00
-A clippy::if_same_then_else \
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 \
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 \
-A clippy::while_let_loop \
2018-12-09 05:25:05 +03:00
-A clippy::wrong_self_convention