summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-openapi/strfmt/.golangci.yml
blob: be4899cb12575e9d684b90e1c0546a2d448a9a69 (plain)
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
linters-settings:
  govet:
    check-shadowing: true
  golint:
    min-confidence: 0
  gocyclo:
    min-complexity: 31
  maligned:
    suggest-new: true
  dupl:
    threshold: 100
  goconst:
    min-len: 2
    min-occurrences: 4

linters:
  enable:
    - revive
    - goimports
    - gosec
    - unparam
    - unconvert
    - predeclared
    - prealloc
    - misspell

  # disable:
  #   - maligned
  #   - lll
  #   - gochecknoinits
  #   - gochecknoglobals
  #   - godox
  #   - gocognit
  #   - whitespace
  #   - wsl
  #   - funlen
  #   - wrapcheck
  #   - testpackage
  #   - nlreturn
  #   - gofumpt
  #   - goerr113
  #   - gci
  #   - gomnd
  #   - godot
  #   - exhaustivestruct
  #   - paralleltest
  #   - varnamelen
  #   - ireturn
  #   - exhaustruct
  #   #- thelper

issues:
  exclude-rules:
    - path: bson.go
      text: "should be .*ObjectID"
      linters:
        - golint
        - stylecheck