mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
chore: move lint rules to cargo config for better editor integration (#15453)
This commit is contained in:
parent
25a1cc1b28
commit
883269f1f1
2 changed files with 13 additions and 12 deletions
|
@ -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",
|
||||
]
|
||||
|
|
|
@ -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",
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue