File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,6 @@ manifests/helloworld/charts
58
58
59
59
# gomock generated reflect files
60
60
gomock_reflect_ * /
61
+
62
+ # Cache
63
+ .cache
Original file line number Diff line number Diff line change @@ -138,8 +138,15 @@ run/site:
138
138
# Lint commands
139
139
140
140
.PHONY : lint/go
141
+ lint/go : FIX ?= false
142
+ lint/go : VERSION ?= sha256:78d1bbd01a9886a395dc8374218a6c0b7b67694e725dd76f0c8ac1de411b85e8 # v1.46.2
143
+ lint/go : FLAGS ?= --rm -e GOLANGCI_LINT_CACHE=/repo/.cache/golangci-lint -v ${PWD}:/repo -w /repo -it
141
144
lint/go :
142
- @echo " Unimplemented"
145
+ ifeq ($(FIX ) ,true)
146
+ docker run ${FLAGS} golangci/golangci-lint@${VERSION} golangci-lint run --fix
147
+ else
148
+ docker run ${FLAGS} golangci/golangci-lint@${VERSION} golangci-lint run
149
+ endif
143
150
144
151
.PHONY : lint/web
145
152
lint/web : FIX ?= false
You can’t perform that action at this time.
0 commit comments