Skip to content

Commit

Permalink
fix: add nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
allisson committed Oct 17, 2024
1 parent eb69795 commit ff0a14c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ build-protobuf:
cd api/v1 && protoc -I/usr/local/include -I. -I$(GOPATH)/src -I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --swagger_out=logtostderr=true:. hammer.proto

lint:
if [ ! -f ./bin/golangci-lint ] ; \
then \
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0; \
fi;
./bin/golangci-lint run --fix
golangci-lint run --fix

test:
go test -covermode=count -coverprofile=count.out -v ./...
Expand Down
1 change: 1 addition & 0 deletions fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

func init() {
// nolint:staticcheck
rand.Seed(time.Now().UnixNano())
}

Expand Down

0 comments on commit ff0a14c

Please sign in to comment.