-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
52 lines (49 loc) · 1014 Bytes
/
Copy pathprek.toml
File metadata and controls
52 lines (49 loc) · 1014 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
45
46
47
48
49
50
51
52
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
hooks = [
{ id = "check-yaml" },
{ id = "end-of-file-fixer" },
{ id = "trailing-whitespace"},
{ id = "detect-private-key"},
]
# Custom hooks defined in local repository
[[repos]]
repo = "local"
hooks = [
{
id = "go-fmt",
name = "gofmt",
language = "system",
entry = "gofmt -w",
files = "\\.go$",
stages = ['pre-commit']
},
{
id = "go-vet",
name = "go vet",
language = "system",
entry = "go vet ./...",
pass_filenames = false,
files = "\\.go$",
stages = ['pre-commit']
},
{
id = "go-lint",
name = "golangci-lint",
language = "system",
entry = "golangci-lint run",
pass_filenames = false,
files = "\\.go$",
stages = ['pre-commit']
},
{
id = "go-staticcheck",
name = "staticcheck",
language = "system",
entry = "staticcheck ./...",
pass_filenames = false,
files = "\\.go$",
stages = ['pre-push']
},
]