From 5008e5682159965c6f3b174aed3523c0b5e2fc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 14 Mar 2021 13:34:28 +0100 Subject: xtask: replace "lint" command by a simply cargo alias This strips the run_clippy implementation out of xtask and replaces it by a simple "cargo lint" alias which runs clippy with the corresponding flags. Unfortunately I could not name the alias "clippy" because that would lead to infinite recursion. --- .cargo/config | 1 + 1 file changed, 1 insertion(+) (limited to '.cargo/config') diff --git a/.cargo/config b/.cargo/config index f6b0b66bf..1447614b7 100644 --- a/.cargo/config +++ b/.cargo/config @@ -3,6 +3,7 @@ xtask = "run --package xtask --bin xtask --" install-ra = "run --package xtask --bin xtask -- install" # for backwards compat tq = "test -- -q" qt = "tq" +lint = "clippy --all-targets -- -Aclippy::collapsible_if -Aclippy::needless_pass_by_value -Aclippy::nonminimal_bool -Aclippy::redundant_pattern_matching --cap-lints warn" [target.x86_64-pc-windows-msvc] linker = "rust-lld" -- cgit v1.2.3