fif/clippy.sh

18 lines
554 B
Bash
Raw Normal View History

2021-02-21 16:08:08 +00:00
#!/bin/bash
fd -e rs -x touch {}
cargo clippy --tests -- \
2021-02-21 16:08:08 +00:00
-W clippy::nursery \
-W clippy::perf \
-W clippy::pedantic \
-W clippy::complexity \
-W clippy::cargo \
-A clippy::unused_io_amount \
-A clippy::redundant_closure_for_method_calls \
2021-03-11 17:44:31 +00:00
-A clippy::shadow_unrelated
2021-02-21 16:08:08 +00:00
# ALLOWS:
# unused_io_amount: there are two places where i want to read up to X bytes and i'm fine with getting less than that
# redundant_closure...: the alternative is often much more verbose
# shadow_unrelated: sometimes things that seem unrelated are actually related ;)