Skip to content

Commit

Permalink
enable gorules
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <kpango@vdaas.org>
  • Loading branch information
kpango committed Mar 15, 2023
1 parent cf54f75 commit b0e02f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Makefile.d/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,13 @@ test/cmd:
.PHONY: test/hack
## run tests for hack
test/hack:
go mod vendor
go test -short -shuffle=on -race -mod=readonly -cover \
$(ROOTDIR)/hack/gorules... \
$(ROOTDIR)/hack/helm/... \
$(ROOTDIR)/hack/license/...\
$(ROOTDIR)/hack/tools/...
rm -rf $(ROOTDIR)/vendor

.PHONY: test/all
## run tests for all Go codes
Expand Down
10 changes: 5 additions & 5 deletions apis/grpc/v1/payload/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ type Payload interface {
ProtoMessage()
ProtoReflect() protoreflect.Message
Descriptor() ([]byte, []int)
// MarshalToSizedBufferVT(dAtA []byte) (int, error)
// MarshalToVT(dAtA []byte) (int, error)
// MarshalVT() (dAtA []byte, err error)
// SizeVT() (n int)
// UnmarshalVT(dAtA []byte) error
MarshalToSizedBufferVT(dAtA []byte) (int, error)
MarshalToVT(dAtA []byte) (int, error)
MarshalVT() (dAtA []byte, err error)
SizeVT() (n int)
UnmarshalVT(dAtA []byte) error
}
2 changes: 0 additions & 2 deletions hack/gorules/rules_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build exclude

// Copyright (C) 2019-2023 vdaas.org vald team <vald@vdaas.org>
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down

0 comments on commit b0e02f1

Please sign in to comment.