Skip to content

Commit b9faeb9

Browse files
committed
style(linters): add iface and configure sloglint settings
1 parent 5d2cc5d commit b9faeb9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.golangci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ linters:
2525
- gosec
2626
- govet
2727
- ineffassign
28+
- iface
2829
- loggercheck
2930
- makezero
3031
- mirror
@@ -178,6 +179,14 @@ linters:
178179
rowserrcheck:
179180
packages:
180181
- github.com/jmoiron/sqlx
182+
sloglint:
183+
static-msg: true
184+
attr-only: true
185+
args-on-sep-lines: true
186+
no-global: all
187+
context: all
188+
msg-style: capitalized
189+
key-naming-case: snake
181190
staticcheck:
182191
checks:
183192
- -ST1003

0 commit comments

Comments
 (0)