Skip to content

Commit 3f1b2cf

Browse files
committed
Update CI configs to v0.11.26
Update lint scripts and CI configs.
1 parent 0d3bd90 commit 3f1b2cf

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.golangci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)