Stop using xtask for clippy (#13223)
This fixes an extra 10 second delay when needing to recompile xtask, and allows passing arbitrary clippy args (like --allow-dirty) Release Notes: - N/A
This commit is contained in:
parent
490a75aee6
commit
6cea9813ad
6 changed files with 37 additions and 9 deletions
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euxo pipefail
|
||||
set -euo pipefail
|
||||
|
||||
cargo xtask clippy
|
||||
if [[ ! " $* " == *" -p "* && ! " $* " == *" --package "* ]]; then
|
||||
set -- "$@" --workspace
|
||||
fi
|
||||
|
||||
set -x
|
||||
"${CARGO:-cargo}" clippy "$@" --release --all-targets --all-features -- --deny warnings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue