-
Notifications
You must be signed in to change notification settings - Fork 5
/
precious.toml
48 lines (44 loc) · 1.06 KB
/
precious.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
exclude = [
"target",
]
[commands.rustfmt]
type = "both"
include = "**/*.rs"
cmd = [ "rustfmt", "--edition", "2021" ]
lint_flags = "--check"
ok_exit_codes = 0
lint_failure_exit_codes = 1
[commands.clippy]
type = "lint"
include = "**/*.rs"
invoke = "once"
path_args = "none"
cmd = [
"cargo",
"clippy",
"--all-targets",
"--all-features",
"--workspace",
"--",
"-D", "clippy::all",
]
ok_exit_codes = 0
lint_failure_exit_codes = 101
ignore_stderr = [ "Checking.+", "Finished.+dev", "could not compile" ]
[commands.prettier]
type = "both"
include = [ "**/*.md", "**/*.yml" ]
cmd = [ "./node_modules/.bin/prettier", "--no-config", "--print-width", "100", "--prose-wrap", "always" ]
lint_flags = "--check"
tidy_flags = "--write"
ok_exit_codes = 0
lint_failure_exit_codes = 1
ignore_stderr = [ "Code style issues" ]
[commands.omegasort-gitignore]
type = "both"
include = "**/.gitignore"
cmd = [ "omegasort", "--sort", "path", "--unique" ]
lint_flags = "--check"
tidy_flags = "--in-place"
ok_exit_codes = 0
lint_failure_exit_codes = 1