-
Notifications
You must be signed in to change notification settings - Fork 1
/
pre-commit-go.yml
66 lines (64 loc) · 1.33 KB
/
pre-commit-go.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# https://github.com/maruel/pre-commit-go configuration file to run checks
# automatically on commit, on push and on continuous integration service after
# a push or on merge of a pull request.
#
# See https://godoc.org/github.com/maruel/pre-commit-go/checks for more
# information.
min_version: 0.4.7
modes:
continuous-integration:
checks:
coverage:
- use_global_inference: false
use_coveralls: true
errcheck:
- {}
gofmt:
- {}
goimports:
- {}
golint:
- blacklist: []
govet:
- {}
test:
- extra_args:
- -v
- -race
max_duration: 360
lint:
checks:
errcheck:
- ignores: Close
golint:
- blacklist: []
govet:
- {}
max_duration: 15
pre-commit:
checks:
copyright:
- header: |-
// Copyright 2018 Dan Jacques. All rights reserved.
// Use of this source code is governed under the MIT License
// that can be found in the LICENSE file.
gofmt:
- {}
test:
- {}
max_duration: 5
pre-push:
checks:
coverage:
- use_global_inference: false
goimports:
- {}
test:
- extra_args:
- -v
- -race
max_duration: 15
ignore_patterns:
- vendor
- '*.pb.go'
- '*.pb_test.go'