Skip to content

Commit

Permalink
chore: move lint rules to cargo config for better editor integration (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
mlafeldt committed Aug 11, 2022
1 parent 25a1cc1 commit 883269f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
13 changes: 1 addition & 12 deletions tools/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand Down

0 comments on commit 883269f

Please sign in to comment.