File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ linters:
20
20
21
21
linters-settings :
22
22
goimports :
23
- local-prefixes : k8s.io/kube-state-metrics
23
+ local-prefixes : k8s.io/kube-state-metrics,k8s.io/kube-state-metrics/v2
24
24
25
25
issues :
26
26
exclude-use-default : false
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ licensecheck:
44
44
lint : shellcheck licensecheck
45
45
golangci-lint run
46
46
47
+ lint-fix :
48
+ golangci-lint run --fix -v
49
+
47
50
doccheck : generate
48
51
@echo " - Checking if the generated documentation is up to date..."
49
52
@git diff --exit-code
@@ -154,4 +157,4 @@ install-promtool:
154
157
@wget -qO- " https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION} /prometheus-${PROMETHEUS_VERSION} .${OS} -${ARCH} .tar.gz" | \
155
158
tar xvz --strip-components=1 prometheus-${PROMETHEUS_VERSION} .${OS} -${ARCH} /promtool
156
159
157
- .PHONY : all build build-local all-push all-container container container-* do-push-* sub-push-* push push-multi-arch test-unit test-rules test-benchmark-compare clean e2e validate-modules shellcheck licensecheck lint generate embedmd
160
+ .PHONY : all build build-local all-push all-container container container-* do-push-* sub-push-* push push-multi-arch test-unit test-rules test-benchmark-compare clean e2e validate-modules shellcheck licensecheck lint lint-fix generate embedmd
You can’t perform that action at this time.
0 commit comments