Skip to content

Commit dee3dff

Browse files
committed
fix(lint) configure staticcheck with defaults and disable deprecation
Preparation for multiversion SDK
1 parent 47f322d commit dee3dff

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

golang-ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ linters:
6666
- name: atomic
6767
- name: empty-lines
6868
- name: early-return
69+
staticcheck:
70+
checks:
71+
# default from https://golangci-lint.run/docs/linters/configuration/#staticcheck
72+
- all
73+
- "-ST1000"
74+
- "-ST1003"
75+
- "-ST1016"
76+
- "-ST1020"
77+
- "-ST1021"
78+
- "-ST1022"
79+
# customizations
80+
- "-SA1019" # disable deprecation errors while we switch over to the SDK structure with multi API version support
6981
exclusions:
7082
generated: lax
7183
paths:

0 commit comments

Comments
 (0)