Skip to content

Commit 7394ac6

Browse files
committed
Add rustfmt linter!
This will format all Rust files in this repo. It formats files individually using `--skip-children` and it *doesn't* use `cargo-fmt` because that requires running `cargo metadata` which linters don't have permission to do.
1 parent d72587f commit 7394ac6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.nit.json5

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
},
1010
},
1111
},
12+
{
13+
name: "Rust",
14+
location: {
15+
remote: {
16+
url: "https://github.com/Timmmm/rustfmt/releases/download/wasi-0/rustfmt.wasm",
17+
hash: "a93885c2a4b3ff7cf66b8b76c6fa7b80bcb2929e636a07a3a86ceabc18783a2f",
18+
},
19+
},
20+
override_args: {
21+
extra_args: [
22+
"--edition",
23+
"2024",
24+
],
25+
},
26+
},
1227
],
1328
include: {
1429
bool: true,

0 commit comments

Comments
 (0)