-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprecious.toml
45 lines (42 loc) · 821 Bytes
/
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
[commands.gofumpt]
type = "tidy"
include = ["**/*.go",]
cmd = [
"gofumpt",
"-w",
]
ok_exit_codes = 0
[commands.golangci-lint]
type = "lint"
include = ["**/*.go",]
run_mode = "dirs"
cmd = [
"golangci-lint",
"run",
"-c",
"$PRECIOUS_ROOT/.golangci.yaml",
"--allow-parallel-runners",
]
ok_exit_codes = 0
[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
ignore_stderr = [
"The .+ file is not sorted",
"The .+ file is not unique",
]
# [commands.ppath]
# type = "lint"
# exclude = [
# "this-does-not-exist.txt",
# "nope*",
# ]
# include = ["precious.toml"]
# run_mode = "files"
# cmd = ["ppath"]
# ok_exit_codes = 0