-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.toml
60 lines (53 loc) · 1.19 KB
/
Makefile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[config]
default_to_workspace = false
[tasks.lint]
description = "Check format of files and run linters"
run_task = { name = ["lint-rs"] }
[tasks.lint-rs]
description = "Lint Rust code"
run_task = { name = ["clippy", "cargo-check", "format-check"] }
[tasks.clippy]
description = "Run clippy"
clear = true
install_crate = "cargo-hack"
command = "cargo"
# TODO: Remove ["-A", "clippy::empty-docs"] when the next issue is resolved:
# https://github.com/leptos-rs/leptos/issues/2406
args = [
"hack",
"clippy",
"--all",
"--each-feature",
"--no-dev-deps",
"--",
"-A",
"clippy::empty-docs",
"-D",
"clippy::print_stdout"
]
[tasks.cargo-check]
description = "Run cargo-check"
clear = true
install_crate = "cargo-hack"
command = "cargo"
args = [
"hack",
"check",
"--all",
"--each-feature",
"--no-dev-deps",
]
[tasks.format-check]
description = "Check Rust code formatting with rustfmt"
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all", "--check"]
[tasks.format]
clear = true
description = "Format files"
run_task = { name = ["format-rs"] }
[tasks.format-rs]
description = "Format Rust code with rustfmt"
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all"]