chore: move lint rules to cargo config for better editor integration (#15453)

This commit is contained in:
Mathias Lafeldt 2022-08-11 15:43:27 +02:00 committed by GitHub
parent 25a1cc1b28
commit 883269f1f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 12 deletions

View file

@ -12,3 +12,15 @@ rustflags = [
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.'cfg(all())']
rustflags = [
"-D",
"clippy::all",
"-D",
"clippy::await_holding_refcell_ref",
"-D",
"clippy::missing_safety_doc",
"-D",
"clippy::undocumented_unsafe_blocks",
]

View file

@ -109,18 +109,7 @@ async function clippy() {
}
const { success } = await Deno.spawn("cargo", {
args: [
...cmd,
"--",
"-D",
"clippy::all",
"-D",
"clippy::await_holding_refcell_ref",
"-D",
"clippy::missing_safety_doc",
"-D",
"clippy::undocumented_unsafe_blocks",
],
args: cmd,
stdout: "inherit",
stderr: "inherit",
});