2022-11-18 23:33:54 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2023-02-18 09:36:12 -05:00
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
|
|
|
|
cd $CWD/../
|
|
|
|
|
2023-01-30 14:17:24 -05:00
|
|
|
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- \
|
2023-02-18 09:36:12 -05: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 06:34:50 -05:00
|
|
|
-A clippy::uninlined_format_args \
|
|
|
|
-D clippy::get_first
|
|
|
|
|
|
|
|
cargo clippy --workspace --features console -- \
|
|
|
|
-D clippy::unwrap_used \
|
|
|
|
-D clippy::indexing_slicing
|
2023-02-18 09:36:12 -05:00
|
|
|
|
|
|
|
cargo +nightly fmt
|