Skip to content

Commit 838d438

Browse files
committed
chore(lint): set golangci default switch case as exhaustive
By default the exhaustive CI rule does not count a `default` switch case as exhaustive. Also fixes typo in misspell settings
1 parent 658148f commit 838d438

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.golangci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ linters:
5858
- zerologlint
5959
settings:
6060
misspell:
61-
ignore-words:
61+
ignore-rules:
6262
- cancelled
6363
extra-words:
6464
- typo: "canceled"
@@ -72,6 +72,8 @@ linters:
7272
- fmt.Fprintln
7373
- (io.Closer).Close
7474
- updateConfigMap
75+
exhaustive:
76+
default-signifies-exhaustive: true
7577
gocritic:
7678
disabled-checks:
7779
- unlambda

0 commit comments

Comments
 (0)