abstreet/clippy.sh

20 lines
579 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
cargo clippy -- \
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 \
-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::wrong_self_convention