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:
9191 - pattern : ^os.Exit$
9292 - pattern : ^panic$
9393 - 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
9498 gomodguard :
9599 blocked :
96100 modules :
@@ -100,6 +104,12 @@ linters:
100104 govet :
101105 enable :
102106 - 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
103113 misspell :
104114 locale : US
105115 varnamelen :
@@ -120,7 +130,10 @@ linters:
120130 - linters :
121131 - forbidigo
122132 - gocognit
123- path : (examples|main\.go|_test\.go)
133+ path : (examples|main\.go)
134+ - linters :
135+ - gocognit
136+ path : _test\.go
124137 - linters :
125138 - forbidigo
126139 path : cmd
You can’t perform that action at this time.
0 commit comments