Skip to content

Commit

Permalink
chore: remove deprecated usage for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jamietanna committed Jun 1, 2024
1 parent 3f33e92 commit 0e91fbb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lint: tools

lint-ci: tools
# for the root module, explicitly run the step, to prevent recursive calls
$(GOBIN)/golangci-lint run ./... --out-format=github-actions --timeout=5m
$(GOBIN)/golangci-lint run ./... --out-format=colored-line-number --timeout=5m
# then, for all child modules, use a module-managed `Makefile`
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && env GOBIN=$(GOBIN) make lint-ci'

Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lint:
$(GOBIN)/golangci-lint run ./...

lint-ci:
$(GOBIN)/golangci-lint run ./... --out-format=github-actions --timeout=5m
$(GOBIN)/golangci-lint run ./... --out-format=colored-line-number --timeout=5m

generate:
go generate ./...
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal-server/stdhttp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lint:

lint-ci:

$(call execute-if-go-122,$(GOBIN)/golangci-lint run ./... --out-format=github-actions --timeout=5m)
$(call execute-if-go-122,$(GOBIN)/golangci-lint run ./... --out-format=colored-line-number --timeout=5m)

generate:
$(call execute-if-go-122,go generate ./...)
Expand Down
2 changes: 1 addition & 1 deletion examples/petstore-expanded/stdhttp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lint:

lint-ci:

$(call execute-if-go-122,$(GOBIN)/golangci-lint run ./... --out-format=github-actions --timeout=5m)
$(call execute-if-go-122,$(GOBIN)/golangci-lint run ./... --out-format=colored-line-number --timeout=5m)

generate:
$(call execute-if-go-122,go generate ./...)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lint:
$(GOBIN)/golangci-lint run ./...

lint-ci:
$(GOBIN)/golangci-lint run ./... --out-format=github-actions --timeout=5m
$(GOBIN)/golangci-lint run ./... --out-format=colored-line-number --timeout=5m

generate:
go generate ./...
Expand Down

0 comments on commit 0e91fbb

Please sign in to comment.