blob: 49dd4eb0255c6ff417ab6218e1fe7877b6e81ab0 [file] [log] [blame]
# 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:
build:
- build_all: false
extra_args: []
coverage:
- use_global_inference: false
use_coveralls: true
global:
min_coverage: 50
max_coverage: 100
per_dir_default:
min_coverage: 1
max_coverage: 100
per_dir:
vpython/venv:
min_coverage: 0 # covered with smoke tests
gofmt:
- {}
goimports:
- {}
test:
- extra_args:
- -v
- -race
max_duration: 1200
lint:
checks:
golint:
- blacklist: []
govet:
- blacklist:
- ' composite literal uses unkeyed fields'
max_duration: 15
pre-commit:
checks:
build:
- build_all: false
extra_args: []
gofmt:
- {}
test:
- extra_args:
- -short
max_duration: 60
pre-push:
checks:
coverage:
- use_global_inference: false
use_coveralls: false
global:
min_coverage: 50
max_coverage: 100
per_dir_default:
min_coverage: 1
max_coverage: 100
per_dir:
vpython/venv:
min_coverage: 0 # covered with smoke tests
goimports:
- {}
test:
- extra_args:
- -v
- -race
max_duration: 60
ignore_patterns:
- '*-gen.go'
- '*.pb.go'
- '*.pb_test.go'
- '*_dec.go'
- '*_mux.go'
- '*_string.go'
- 'pb.discovery.go'
- 'dist'
- 'static'
- 'talk'
- 'testdata'
- .*
- _*