Skip to content

Commit e8d3222

Browse files
committed
Disable deprecated linters
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
1 parent bad0d95 commit e8d3222

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.golangci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
linters-settings:
22
govet:
33
check-shadowing: true
4-
golint:
5-
min-confidence: 0
64
gocyclo:
75
min-complexity: 50
86
maligned:
@@ -43,10 +41,13 @@ linters:
4341
- cyclop # because we have gocyclo already
4442
# TODO: review the linters below. We disabled them to make the CI pass first.
4543
- gocritic
46-
- revive
4744
- containedctx
4845
- ireturn
4946
- varnamelen
5047
- forcetypeassert
5148
- thelper
52-
- wastedassign
49+
- wastedassign
50+
# Disable deprecated linters.
51+
# They will be removed from golangci-lint in future.
52+
- interfacer
53+
- golint

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
none operationType = "none" // not specified in ctx
2020
)
2121

22-
var operationTypeEnum []operationType = []operationType{request, response, none}
22+
var operationTypeEnum = []operationType{request, response, none}
2323

2424
// WithOperationRequest returns a new context with operationType request
2525
// in context value

0 commit comments

Comments
 (0)