summaryrefslogtreecommitdiff
path: root/vendor/github.com/testcontainers/testcontainers-go/.golangci.yml
blob: 8d668831def8040774725944945cf93ca174ce65 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
formatters:
  enable:
    - gci
    - gofumpt
  settings:
    gci:
      sections:
        - standard
        - default
        - prefix(github.com/testcontainers)
linters:
  enable:
    - errorlint
    - gocritic
    - misspell
    - nakedret
    - nolintlint
    - perfsprint
    - revive
    - testifylint
    - thelper
    - usestdlibvars
  exclusions:
    presets:
      - comments
      - common-false-positives
      - legacy
      - std-error-handling
  settings:
    errorlint:
      asserts: true
      comparison: true
      errorf: true
      errorf-multi: true
    revive:
      rules:
        - name: blank-imports
        - name: context-as-argument
          arguments:
            - allowTypesBefore: '*testing.T'
        - name: context-keys-type
        - name: dot-imports
        - name: early-return
          arguments:
            - preserveScope
        - name: empty-block
        - name: error-naming
          disabled: true
        - name: error-return
        - name: error-strings
          disabled: true
        - name: errorf
        - name: increment-decrement
        - name: indent-error-flow
          arguments:
            - preserveScope
        - name: range
        - name: receiver-naming
        - name: redefines-builtin-id
          disabled: true
        - name: superfluous-else
          arguments:
            - preserveScope
        - name: time-naming
        - name: unexported-return
          disabled: true
        - name: unreachable-code
        - name: unused-parameter
        - name: use-any
        - name: var-declaration
        - name: var-naming
          arguments:
            - - ID
            - - VM
            - - upperCaseConst: true
    staticcheck:
      checks:
        - all
    testifylint:
      disable:
        - float-compare
        - go-require
      enable-all: true
output:
  formats:
    text:
      path: stdout
  path-prefix: .
version: "2"