|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# See https://github.com/woodpecker-ci/woodpecker/issues/1677
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
|
- &rust_image "rust:1.72.1"
|
|
|
|
|
- &rust_image "rust:1.74.0"
|
|
|
|
|
- &slow_check_paths
|
|
|
|
|
- path:
|
|
|
|
|
# rust source code
|
|
|
|
@ -163,21 +163,7 @@ steps:
|
|
|
|
|
commands:
|
|
|
|
|
# when adding new clippy lints, make sure to also add them in scripts/lint.sh
|
|
|
|
|
- rustup component add clippy
|
|
|
|
|
- cargo clippy --workspace --tests --all-targets --features console --
|
|
|
|
|
-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::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 clippy --workspace --tests --all-targets --features console -- -D warnings
|
|
|
|
|
when: *slow_check_paths
|
|
|
|
|
|
|
|
|
|
cargo_build:
|
|
|
|
|