Skip to content

Commit

Permalink
Bump linter version
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Dec 2, 2024
1 parent 905a4a8 commit bc54bb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test: ensure_go_version
go test -race -fullpath -shuffle on -count $(TEST_COUNT) -coverprofile=$(COVERAGE_FILE) \
`go list ./... | grep -Ev 'chainlink-ccip/internal/mocks|chainlink-ccip/mocks|chainlink-ccip/commit/merkleroot/rmn/rmnpb'`

lint: ensure_go_version ensure_golangcilint_1_59
lint: ensure_go_version ensure_golangcilint_1_62_2
golangci-lint run -c .golangci.yml

checks: test lint
Expand All @@ -57,13 +57,13 @@ install-protoc:
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31

install-golangcilint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2

ensure_go_version:
@go version | grep -q 'go1.23.3' || (echo "Please use go1.23.3" && exit 1)

ensure_golangcilint_1_59:
@golangci-lint --version | grep -q '1.59' || (echo "Please use golangci-lint 1.59" && exit 1)
ensure_golangcilint_1_62_2:
@golangci-lint --version | grep -q ' 1.62.2' || (echo "Please use golangci-lint 1.62.2" && exit 1)

ensure_protoc_28_0:
@$(PROTOC_BIN) --version | grep -q 'libprotoc 28.0' || (echo "Please use protoc 28.0, (make install-protoc)" && exit 1)

0 comments on commit bc54bb9

Please sign in to comment.