Skip to content

Commit d34e7ce

Browse files
committed
fix: lint issues
1 parent f4eae47 commit d34e7ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ linters:
1010
disable:
1111
# Project specific linters
1212
- paralleltest
13+
- forbidigo
1314
# Discouraged linters
1415
- noinlineerr # Disallows inline error handling (`if err := ...; err != nil {`).
1516
- embeddedstructfieldcheck # Embedded types should be at the top of the field list of a struct, and there must be an empty line separating embedded fields from regular fields. [fast]
@@ -64,6 +65,10 @@ linters:
6465
rules:
6566
- name: package-comments
6667
disabled: true
68+
# https://golangci-lint.run/docs/linters/configuration/#gocritic
69+
gocritic:
70+
disabled-checks:
71+
- ifElseChain
6772
exclusions:
6873
presets:
6974
- comments

0 commit comments

Comments
 (0)