diff options
author | Matthias Krüger <[email protected]> | 2021-03-14 12:34:28 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-14 12:36:45 +0000 |
commit | 5008e5682159965c6f3b174aed3523c0b5e2fc08 (patch) | |
tree | 717c195e1ea7894c25d62cdab0b6c4526585eba1 /.cargo/config | |
parent | a8a7fa834726eb763fe872b02db821f99098a498 (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/config | 1 |
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 --" | |||
3 | install-ra = "run --package xtask --bin xtask -- install" # for backwards compat | 3 | install-ra = "run --package xtask --bin xtask -- install" # for backwards compat |
4 | tq = "test -- -q" | 4 | tq = "test -- -q" |
5 | qt = "tq" | 5 | qt = "tq" |
6 | lint = "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] |
8 | linker = "rust-lld" | 9 | linker = "rust-lld" |