OLD | NEW |
1 # https://github.com/maruel/pre-commit-go configuration file to run checks | 1 # https://github.com/maruel/pre-commit-go configuration file to run checks |
2 # automatically on commit, on push and on continuous integration service after | 2 # automatically on commit, on push and on continuous integration service after |
3 # a push or on merge of a pull request. | 3 # a push or on merge of a pull request. |
4 # | 4 # |
5 # See https://godoc.org/github.com/maruel/pre-commit-go/checks for more | 5 # See https://godoc.org/github.com/maruel/pre-commit-go/checks for more |
6 # information. | 6 # information. |
7 | 7 |
8 coverage_settings: &COVERAGE_SETTINGS | 8 coverage_settings: &COVERAGE_SETTINGS |
9 use_global_inference: false | 9 use_global_inference: false |
10 use_coveralls: false | 10 use_coveralls: false |
(...skipping 27 matching lines...) Expand all Loading... |
38 max_duration: 120 | 38 max_duration: 120 |
39 lint: | 39 lint: |
40 checks: | 40 checks: |
41 errcheck: | 41 errcheck: |
42 - ignores: Close | 42 - ignores: Close |
43 golint: | 43 golint: |
44 - blacklist: [] | 44 - blacklist: [] |
45 govet: | 45 govet: |
46 - blacklist: | 46 - blacklist: |
47 - ' composite literal uses unkeyed fields' | 47 - ' composite literal uses unkeyed fields' |
48 max_duration: 15 | 48 max_duration: 20 |
49 pre-commit: | 49 pre-commit: |
50 checks: | 50 checks: |
51 build: | 51 build: |
52 - build_all: false | 52 - build_all: false |
53 extra_args: [] | 53 extra_args: [] |
54 gofmt: | 54 gofmt: |
55 - {} | 55 - {} |
56 test: | 56 test: |
57 - extra_args: | 57 - extra_args: |
58 - -short | 58 - -short |
59 max_duration: 5 | 59 max_duration: 10 |
60 pre-push: | 60 pre-push: |
61 checks: | 61 checks: |
62 coverage: | 62 coverage: |
63 - <<: *COVERAGE_SETTINGS | 63 - <<: *COVERAGE_SETTINGS |
64 goimports: | 64 goimports: |
65 - {} | 65 - {} |
66 test: | 66 test: |
67 - extra_args: | 67 - extra_args: |
68 - -v | 68 - -v |
69 - -race | 69 - -race |
70 max_duration: 15 | 70 max_duration: 20 |
| 71 |
71 ignore_patterns: | 72 ignore_patterns: |
72 - .* | 73 - .* |
73 - _* | 74 - _* |
74 - '*.pb.go' | 75 - '*.pb.go' |
75 - '*_string.go' | 76 - '*_string.go' |
OLD | NEW |