-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy path.precious.toml
More file actions
44 lines (41 loc) · 823 Bytes
/
Copy path.precious.toml
File metadata and controls
44 lines (41 loc) · 823 Bytes
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
exclude = [
"test-data/**/*",
"vendor/**/*",
"GeoLite2-ASN.mmdb",
"GeoLite2-City.mmdb",
"*.prof",
"*.pprof",
"*.out",
"*.svg",
"*.tar.gz",
"*.test",
]
[commands.golangci-lint-fmt]
type = "both"
include = "**/*.go"
invoke = "once"
path-args = "none"
cmd = ["golangci-lint", "fmt"]
lint-flags = "--diff"
ok-exit-codes = [0]
lint-failure-exit-codes = [1]
[commands.golangci-lint]
type = "both"
include = "**/*.go"
invoke = "once"
path-args = "none"
cmd = ["golangci-lint", "run"]
tidy-flags = "--fix"
ok-exit-codes = [0]
lint-failure-exit-codes = [1]
[commands.prettier]
type = "both"
include = ["**/*.md", "**/*.yml", "**/*.yaml"]
invoke = "once"
path-args = "file"
cmd = ["prettier"]
lint-flags = "--check"
tidy-flags = "--write"
ok-exit-codes = [0]
lint-failure-exit-codes = [1]
expect-stderr = true