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:
Conrad Irwin 2024-06-18 13:49:44 -06:00 committed by GitHub
parent 490a75aee6
commit 6cea9813ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 37 additions and 9 deletions

View file

@ -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