From 1848c7e361f1a3a33487b60ab6fcb61ed1f62273 Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Fri, 19 Aug 2022 14:17:18 +0200 Subject: Fix: Honor linter rules in CI and locally (#15492) RUSTFLAGS take precedence over `target..rustflags`. Therefore, setting the env var globally in CI would always override whatever linter rules are allowed or denied in .cargo/config.toml. With this change, we ensure that problems are detected both in CI and locally, using either cargo clippy or lint.js. --- tools/lint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lint.js b/tools/lint.js index c1b9b3050..21433fc6c 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -111,7 +111,7 @@ async function clippy() { } const { success } = await Deno.spawn("cargo", { - args: cmd, + args: [...cmd, "--", "-D", "warnings"], stdout: "inherit", stderr: "inherit", }); -- cgit v1.2.3