File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ bin/golangci-lint:
3232 mkdir -p $(BIN )
3333 GOBIN=
$(BIN ) go install github.com/golangci/golangci-lint/v2/cmd/
[email protected] 3434
35- bin/custom-gcl : bin/golangci-lint $(shell find tools \( -name '* .go' -or -name '* .mod' -or -name '* .sum' \) -and -not -name '* _test.go' -maxdepth 4)
35+ tools_go_files = $(shell find tools \( -name '* .go' -or -name '* .mod' -or -name '* .sum' \) -and -not -name '*_test.go' -maxdepth 4)
36+ bin/custom-gcl : bin/golangci-lint $(tools_go_files )
3637 $(BIN ) /golangci-lint custom --name custom-gcl --destination $(BIN )
3738
3839tools : bin/custom-gcl go.sum
@@ -45,7 +46,7 @@ build: lintcheck
4546
4647fmt : tools
4748 @echo " ==> Fixing source code formatting..."
48- $(BIN ) /custom-gcl fmt ./...
49+ $(BIN ) /custom-gcl fmt ./... ./tools/...
4950
5051lint : tools
5152 @echo " ==> Checking source code against linters and fixing..."
You can’t perform that action at this time.
0 commit comments