Skip to content

Commit

Permalink
Add flags to running golangci-lint (#617)
Browse files Browse the repository at this point in the history
Add `--modules-download-mode=readonly` and `--timeout=3m0s` to running
`golangci-lint`.
  • Loading branch information
oliversun9 authored Oct 30, 2023
1 parent 95989ea commit 734ea94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ install: ## Install all binaries
.PHONY: lint
lint: $(BIN)/golangci-lint $(BIN)/buf ## Lint Go and protobuf
go vet ./...
golangci-lint run
golangci-lint run --modules-download-mode=readonly --timeout=3m0s
buf lint
buf format -d --exit-code

.PHONY: lintfix
lintfix: $(BIN)/golangci-lint $(BIN)/buf ## Automatically fix some lint errors
golangci-lint run --fix
golangci-lint run --fix --modules-download-mode=readonly --timeout=3m0s
buf format -w

.PHONY: generate
Expand Down

0 comments on commit 734ea94

Please sign in to comment.