Skip to content

Commit c752152

Browse files
authored
Merge pull request #1875 from CatherineF-dev/update-develop-doc
Update development doc
2 parents 63db483 + 5b6ea71 commit c752152

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ linters:
2020

2121
linters-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

2525
issues:
2626
exclude-use-default: false

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ licensecheck:
4444
lint: shellcheck licensecheck
4545
golangci-lint run
4646

47+
lint-fix:
48+
golangci-lint run --fix -v
49+
4750
doccheck: 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

0 commit comments

Comments
 (0)