From b99a0cce868969616c7f33bf903356745a75cd11 Mon Sep 17 00:00:00 2001 From: ckaznocha Date: Wed, 11 Aug 2021 21:03:59 -0700 Subject: [PATCH] Fix lint issue --- .golangci.yml | 2 +- linter/protoBuffErrors.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index ecb4526..5c5bbb1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -74,7 +74,6 @@ linters: - gofmt - gofumpt - goimports - - golint - gomnd - goprintffuncname - gosec @@ -91,6 +90,7 @@ linters: - nolintlint - prealloc - predeclared + - revive - rowserrcheck - staticcheck - structcheck diff --git a/linter/protoBuffErrors.go b/linter/protoBuffErrors.go index 9802e58..3aa1096 100644 --- a/linter/protoBuffErrors.go +++ b/linter/protoBuffErrors.go @@ -18,7 +18,7 @@ func (p *protoBufErrors) lintProtoMessage( parentPath []int32, protoMessage *descriptorpb.DescriptorProto, ) { - path := append( + path := append( //nolint:gocritic parentPath, pathType, pathIndex, @@ -50,7 +50,7 @@ func (p *protoBufErrors) lintProtoField( parentPath []int32, messageField *descriptorpb.FieldDescriptorProto, ) { - path := append( + path := append( //nolint:gocritic parentPath, pathMessageField, pathIndex, @@ -71,7 +71,7 @@ func (p *protoBufErrors) lintProtoEnumType( parentPath []int32, protoEnum *descriptorpb.EnumDescriptorProto, ) { - path := append( + path := append( //nolint:gocritic parentPath, pathType, pathIndex, @@ -95,7 +95,7 @@ func (p *protoBufErrors) lintProtoEnumValue( parentPath []int32, enumVal *descriptorpb.EnumValueDescriptorProto, ) { - path := append( + path := append( //nolint:gocritic parentPath, pathEnumValue, pathIndex, @@ -137,7 +137,7 @@ func (p *protoBufErrors) lintProtoRPCMethod( parentPath []int32, serviceMethod *descriptorpb.MethodDescriptorProto, ) { - path := append( + path := append( //nolint:gocritic parentPath, pathRPCMethod, pathIndex,