diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-07-30 16:50:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-30 16:50:12 +0200 |
| commit | 0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621 (patch) | |
| tree | 34e49d9df43c3ca16b3fc305aab2dd391ad5bc46 /xtask/src/clippy.rs | |
| parent | Even more debian upgrades (#5424) (diff) | |
| download | sl0ppij-0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621.tar.gz sl0ppij-0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621.tar.xz sl0ppij-0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621.zip | |
fix(build): remove manpage, honor CARGO_TARGET_DIR, add cargo argument passthrough, remove clippy (#5426)
* fix(build): remove manpage, honor CARGO_TARGET_DIR, add cargo argument passthrough, remove clippy
* add pr
Diffstat (limited to 'xtask/src/clippy.rs')
| -rw-r--r-- | xtask/src/clippy.rs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/xtask/src/clippy.rs b/xtask/src/clippy.rs deleted file mode 100644 index 77f965b9..00000000 --- a/xtask/src/clippy.rs +++ /dev/null @@ -1,44 +0,0 @@ -//! Handle running `cargo clippy` on the sources. -use crate::{build, flags, WorkspaceMember}; -use anyhow::Context; -use std::path::{Path, PathBuf}; -use xshell::{cmd, Shell}; - -pub fn clippy(sh: &Shell, _flags: flags::Clippy) -> anyhow::Result<()> { - let _pd = sh.push_dir(crate::project_root()); - - build::build( - sh, - flags::Build { - release: false, - no_plugins: false, - plugins_only: true, - no_web: false, - }, - ) - .context("failed to run task 'clippy'")?; - - let cargo = check_clippy() - .and_then(|_| crate::cargo()) - .context("failed to run task 'clippy'")?; - - for WorkspaceMember { crate_name, .. } in crate::workspace_members().iter() { - let _pd = sh.push_dir(Path::new(crate_name)); - // Tell the user where we are now - println!(); - let msg = format!(">> Running clippy on '{crate_name}'"); - crate::status(&msg); - println!("{}", msg); - - cmd!(sh, "{cargo} clippy --all-targets --all-features") - .run() - .with_context(|| format!("failed to run task 'clippy' on '{crate_name}'"))?; - } - Ok(()) -} - -fn check_clippy() -> anyhow::Result<PathBuf> { - which::which("cargo-clippy").context( - "Couldn't find 'clippy' executable. Please install it with `rustup component add clippy`", - ) -} |
