aboutsummaryrefslogtreecommitdiff
path: root/.cargo/config
diff options
context:
space:
mode:
authorMatthias Krüger <[email protected]>2021-03-14 12:34:28 +0000
committerMatthias Krüger <[email protected]>2021-03-14 12:36:45 +0000
commit5008e5682159965c6f3b174aed3523c0b5e2fc08 (patch)
tree717c195e1ea7894c25d62cdab0b6c4526585eba1 /.cargo/config
parenta8a7fa834726eb763fe872b02db821f99098a498 (diff)
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.
Diffstat (limited to '.cargo/config')
-rw-r--r--.cargo/config1
1 files changed, 1 insertions, 0 deletions
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 --"
3install-ra = "run --package xtask --bin xtask -- install" # for backwards compat 3install-ra = "run --package xtask --bin xtask -- install" # for backwards compat
4tq = "test -- -q" 4tq = "test -- -q"
5qt = "tq" 5qt = "tq"
6lint = "clippy --all-targets -- -Aclippy::collapsible_if -Aclippy::needless_pass_by_value -Aclippy::nonminimal_bool -Aclippy::redundant_pattern_matching --cap-lints warn"
6 7
7[target.x86_64-pc-windows-msvc] 8[target.x86_64-pc-windows-msvc]
8linker = "rust-lld" 9linker = "rust-lld"