mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 08:23:59 +00:00
9256895635
* Try using drone cache plugin * Try another path * Include volume * Fix formatting * Include fmt * Exclude cargo dir from prettier * Don't override cargo * Just do check * Add cache key * Use different cache plugin * Add clippy * Try minio * Add quotes * Try adding secrets * Try again * Again * Use correct secret formation * Add back clippy * Use secret for the root bucket name * Try drone cache instead * Add region * Add path-style option * Include cargo clippy * Include everything again * Fix formatting * Don't run clippy twice * Add `allow` statements for tests to pass * Adjust endpoint to be a secret * Fix prettier * Merge & fix tests * Try to restart the woodpecker test * Change the ENV var name --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
25 lines
884 B
Bash
Executable file
25 lines
884 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
cd $CWD/../
|
|
|
|
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- \
|
|
-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 \
|
|
-A clippy::uninlined_format_args \
|
|
-D clippy::get_first \
|
|
-D clippy::explicit_into_iter_loop \
|
|
-D clippy::explicit_iter_loop \
|
|
-D clippy::needless_collect \
|
|
-D clippy::unwrap_used \
|
|
-D clippy::indexing_slicing
|
|
|
|
cargo +nightly fmt
|
|
taplo format
|