Skip to content

Commit d437517

Browse files
anuraaganutanix-Hrushikesh
authored andcommitted
ci: format Go with golangci-lint (envoyproxy#1289)
Signed-off-by: Hrushikesh Patil <[email protected]>
1 parent d2a8238 commit d437517

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ GO_FILES=$(shell git ls-files --cached --others --exclude-standard | grep '\.go$
6969
.PHONY: format
7070
format: ## Format the codebase.
7171
@echo "format => *.go"
72-
@gofmt -s -w $(GO_FILES)
73-
@$(GO_TOOL) gofumpt -l -w $(GO_FILES)
74-
@echo "gci => *.go"
75-
@$(GO_TOOL) gci write -s standard -s default -s "prefix(github.com/envoyproxy/ai-gateway)" $(GO_FILES)
72+
@$(GO_TOOL) golangci-lint fmt $(GO_FILES)
7673
@echo "licenses => **"
7774
@$(GO_TOOL) license-eye header fix
7875
@echo "prettier => **.{yaml,yml}"

tools/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ go 1.25
44

55
tool (
66
github.com/apache/skywalking-eyes/cmd/license-eye
7-
github.com/daixiang0/gci
87
github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker
98
github.com/elastic/crd-ref-docs
109
github.com/golangci/golangci-lint/v2/cmd/golangci-lint
1110
github.com/tetratelabs/func-e/cmd/func-e
1211
github.com/vladopajic/go-test-coverage/v2
1312
github.com/wasilibs/go-prettier/v3/cmd/prettier
1413
helm.sh/helm/v3/cmd/helm
15-
mvdan.cc/gofumpt
1614
sigs.k8s.io/controller-runtime/tools/setup-envtest
1715
sigs.k8s.io/controller-tools/cmd/controller-gen
1816
sigs.k8s.io/kind

0 commit comments

Comments
 (0)