File: pre-commit-go.yml

package info (click to toggle)
golang-github-smartystreets-assertions 1.6.0%2Bdfsg-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 340 kB
  • sloc: python: 80; makefile: 19
file content (78 lines) | stat: -rw-r--r-- 1,589 bytes parent folder | download | duplicates (6)
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
67
68
69
70
71
72
73
74
75
76
77
78
# 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: {}
      gofmt:
      - {}
      goimports:
      - {}
      test:
      - extra_args:
        - -v
        - -race
    max_duration: 600
  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: 35
  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: {}
      goimports:
      - {}
      test:
      - extra_args:
        - -v
        - -race
    max_duration: 35

ignore_patterns:
- .*
- _*
- '*.pb.go'
- '*_string.go'
- '*-gen.go'