summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-openapi/validate/.golangci.yml
blob: 81818ca67885b0ba02fda3bfc156b8ad4bd8acd6 (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
linters-settings:
  govet:
    check-shadowing: true
  gocyclo:
    min-complexity: 50
  maligned:
    suggest-new: true
  dupl:
    threshold: 100
  goconst:
    min-len: 2
    min-occurrences: 3

linters:
  enable-all: true
  disable:
    - maligned
    - lll
    - godox
    - gocognit
    - whitespace
    - wsl
    - funlen
    - gochecknoglobals
    - gochecknoinits
    - scopelint
    - wrapcheck
    - exhaustivestruct
    - exhaustive
    - nlreturn
    - testpackage
    - gci
    - gofumpt
    - goerr113
    - gomnd
    - tparallel
    - nestif
    - godot
    - tparallel
    - paralleltest
    - cyclop # because we have gocyclo already
    # TODO: review the linters below. We disabled them to make the CI pass first.
    - ireturn
    - varnamelen
    - forcetypeassert
    - thelper
    # Disable deprecated linters.
    # They will be removed from golangci-lint in future.
    - interfacer
    - golint