File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ linters:
91
91
- pattern : ^os.Exit$
92
92
- pattern : ^panic$
93
93
- pattern : ^print(ln)?$
94
+ - pattern : ^testing.T.(Error|Errorf|Fatal|Fatalf|Fail|FailNow)$
95
+ pkg : ^testing$
96
+ msg : use testify/assert instead
97
+ analyze-types : true
94
98
gomodguard :
95
99
blocked :
96
100
modules :
@@ -100,6 +104,12 @@ linters:
100
104
govet :
101
105
enable :
102
106
- shadow
107
+ revive :
108
+ rules :
109
+ # Prefer 'any' type alias over 'interface{}' for Go 1.18+ compatibility
110
+ - name : use-any
111
+ severity : warning
112
+ disabled : false
103
113
misspell :
104
114
locale : US
105
115
varnamelen :
@@ -120,7 +130,10 @@ linters:
120
130
- linters :
121
131
- forbidigo
122
132
- gocognit
123
- path : (examples|main\.go|_test\.go)
133
+ path : (examples|main\.go)
134
+ - linters :
135
+ - gocognit
136
+ path : _test\.go
124
137
- linters :
125
138
- forbidigo
126
139
path : cmd
You can’t perform that action at this time.
0 commit comments