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:
2020
2121linters-settings :
2222 goimports :
23- local-prefixes : k8s.io/kube-state-metrics
23+ local-prefixes : k8s.io/kube-state-metrics,k8s.io/kube-state-metrics/v2
2424
2525issues :
2626 exclude-use-default : false
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ licensecheck:
4444lint : shellcheck licensecheck
4545 golangci-lint run
4646
47+ lint-fix :
48+ golangci-lint run --fix -v
49+
4750doccheck : generate
4851 @echo " - Checking if the generated documentation is up to date..."
4952 @git diff --exit-code
@@ -154,4 +157,4 @@ install-promtool:
154157 @wget -qO- " https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION} /prometheus-${PROMETHEUS_VERSION} .${OS} -${ARCH} .tar.gz" | \
155158 tar xvz --strip-components=1 prometheus-${PROMETHEUS_VERSION} .${OS} -${ARCH} /promtool
156159
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