-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-hooks.yaml
42 lines (42 loc) · 955 Bytes
/
.pre-commit-hooks.yaml
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
- id: gofmt
name: Go Fmt
entry: golang/gofmt.sh
language: script
files: \.go$
exclude: (^vendor/)|(\.pb\.go$)
- id: goimports
name: Go Imports
entry: golang/goimports.sh
language: script
files: \.go$
exclude: (^vendor/)|(\.pb\.go$)
- id: go-vet
name: Go Vet
entry: golang/go-vet.sh
language: script
files: \.go$
exclude: (^vendor/)|(\.pb\.go$)
- id: go-mod-tidy
name: Go Mod Tidy
entry: golang/go-mod-tidy.sh
language: script
files: (\.go$)|(go\.mod)|(go\.sum)
exclude: ^vendor/
- id: thriftfmt
name: Thrift Format
entry: thrift/thriftfmt.sh
language: script
files: \.thrift$
- id: prototool
name: prototool
entry: protobuf/prototool.sh
language: script
files: (\.proto$)|(prototool.yaml)|(prototool.json)
pass_filenames: false
- id: golangci-lint
name: golangci-lint
entry: golang/golangci-lint.sh
language: script
files: \.go$
exclude: (^vendor/)|(\.pb\.go$)
pass_filenames: false