| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 pre-commit: | 47 pre-commit: |
| 48 checks: | 48 checks: |
| 49 build: | 49 build: |
| 50 - build_all: false | 50 - build_all: false |
| 51 extra_args: [] | 51 extra_args: [] |
| 52 gofmt: | 52 gofmt: |
| 53 - {} | 53 - {} |
| 54 test: | 54 test: |
| 55 - extra_args: | 55 - extra_args: |
| 56 - -short | 56 - -short |
| 57 max_duration: 10 | 57 max_duration: 30 |
| 58 pre-push: | 58 pre-push: |
| 59 checks: | 59 checks: |
| 60 coverage: | 60 coverage: |
| 61 - <<: *COVERAGE_SETTINGS | 61 - <<: *COVERAGE_SETTINGS |
| 62 goimports: | 62 goimports: |
| 63 - {} | 63 - {} |
| 64 test: | 64 test: |
| 65 - extra_args: | 65 - extra_args: |
| 66 - -v | 66 - -v |
| 67 - -race | 67 - -race |
| 68 max_duration: 120 | 68 max_duration: 120 |
| 69 | 69 |
| 70 ignore_patterns: | 70 ignore_patterns: |
| 71 - .* | 71 - .* |
| 72 - _* | 72 - _* |
| 73 - '*.pb.go' | 73 - '*.pb.go' |
| 74 - '*_string.go' | 74 - '*_string.go' |
| OLD | NEW |