OLD | NEW |
(Empty) | |
| 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 |
| 3 # a push or on merge of a pull request. |
| 4 # |
| 5 # See https://godoc.org/github.com/maruel/pre-commit-go/checks for more |
| 6 # information. |
| 7 |
| 8 coverage_settings: &COVERAGE_SETTINGS |
| 9 use_global_inference: false |
| 10 use_coveralls: false |
| 11 global: |
| 12 min_coverage: 50 |
| 13 max_coverage: 100 |
| 14 per_dir_default: |
| 15 min_coverage: 1 |
| 16 max_coverage: 100 |
| 17 per_dir: |
| 18 impl/prod: null |
| 19 |
| 20 min_version: 0.4.7 |
| 21 modes: |
| 22 continuous-integration: |
| 23 checks: |
| 24 build: |
| 25 - build_all: false |
| 26 extra_args: [] |
| 27 coverage: |
| 28 - <<: *COVERAGE_SETTINGS |
| 29 use_coveralls: true |
| 30 gofmt: |
| 31 - {} |
| 32 goimports: |
| 33 - {} |
| 34 test: |
| 35 - extra_args: |
| 36 - -v |
| 37 - -race |
| 38 max_duration: 120 |
| 39 lint: |
| 40 checks: |
| 41 errcheck: |
| 42 - ignores: Close |
| 43 golint: |
| 44 - blacklist: [] |
| 45 govet: |
| 46 - blacklist: |
| 47 - ' composite literal uses unkeyed fields' |
| 48 max_duration: 15 |
| 49 pre-commit: |
| 50 checks: |
| 51 build: |
| 52 - build_all: false |
| 53 extra_args: [] |
| 54 gofmt: |
| 55 - {} |
| 56 test: |
| 57 - extra_args: |
| 58 - -short |
| 59 max_duration: 5 |
| 60 pre-push: |
| 61 checks: |
| 62 coverage: |
| 63 - <<: *COVERAGE_SETTINGS |
| 64 goimports: |
| 65 - {} |
| 66 test: |
| 67 - extra_args: |
| 68 - -v |
| 69 - -race |
| 70 max_duration: 15 |
| 71 ignore_patterns: |
| 72 - .* |
| 73 - _* |
| 74 - '*.pb.go' |
| 75 - '*_string.go' |
OLD | NEW |