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:
+7
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user