2023-06-08 19:38:26 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-11-19 04:33:54 +00:00
|
|
|
set -e
|
|
|
|
|
2023-02-18 14:36:12 +00:00
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
|
|
|
|
cd $CWD/../
|
|
|
|
|
2023-01-30 19:17:24 +00:00
|
|
|
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- \
|
2023-02-18 14:36:12 +00:00
|
|
|
-D warnings -D deprecated -D clippy::perf -D clippy::complexity \
|
|
|
|
-D clippy::style -D clippy::correctness -D clippy::suspicious \
|
|
|
|
-D clippy::dbg_macro -D clippy::inefficient_to_string \
|
|
|
|
-D clippy::items-after-statements -D clippy::implicit_clone \
|
|
|
|
-D clippy::wildcard_imports -D clippy::cast_lossless \
|
|
|
|
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls \
|
|
|
|
-D clippy::unused_self \
|
2023-02-28 11:34:50 +00:00
|
|
|
-A clippy::uninlined_format_args \
|
2023-06-28 09:19:26 +00:00
|
|
|
-D clippy::get_first \
|
|
|
|
-D clippy::explicit_into_iter_loop \
|
|
|
|
-D clippy::explicit_iter_loop \
|
2023-07-17 15:04:14 +00:00
|
|
|
-D clippy::needless_collect \
|
2023-02-28 11:34:50 +00:00
|
|
|
-D clippy::unwrap_used \
|
|
|
|
-D clippy::indexing_slicing
|
2023-02-18 14:36:12 +00:00
|
|
|
|
|
|
|
cargo +nightly fmt
|
2023-07-14 08:45:18 +00:00
|
|
|
taplo format
|