forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
120 lines (118 loc) · 2.79 KB
/
.golangci.yml
File metadata and controls
120 lines (118 loc) · 2.79 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
formatters:
enable:
- gci
- gofumpt
settings:
gci:
sections:
- standard
- default
- prefix(github.com/testcontainers)
linters:
enable:
- errorlint
- gocritic
- govet
- misspell
- nakedret
- nolintlint
- perfsprint
- prealloc
- revive
- testifylint
- thelper
- usestdlibvars
exclusions:
rules:
- linters:
- revive
path: "^exec/"
text: "var-naming: avoid package names that conflict with Go standard library package names"
- linters:
- revive
path: "^log/"
text: "var-naming: avoid package names that conflict with Go standard library package names"
- linters:
- revive
path: "modulegen/internal/(context|template)/"
text: "var-naming: avoid package names that conflict with Go standard library package names"
- linters:
- revive
path: "internal/sdk/types/"
text: "var-naming: avoid meaningless package names"
- linters:
- revive
path: "gcloud/internal/shared/"
text: "var-naming: avoid meaningless package names"
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
settings:
errorlint:
asserts: true
comparison: true
errorf: true
errorf-multi: true
govet:
disable:
- fieldalignment
- shadow
enable-all: 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
run:
relative-path-mode: gitroot
version: "2"