Skip to content

Commit d45101e

Browse files
committed
remove staticcheck
it's covered by golangci-lint
1 parent c989e55 commit d45101e

4 files changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/cicd-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
strategy:
8181
fail-fast: true
8282
matrix:
83-
ops: [ 'manifests', 'mod-vendor', 'generate', 'lint', 'staticcheck', 'test' ]
83+
ops: [ 'manifests', 'mod-vendor', 'generate', 'lint', 'test' ]
8484
steps:
8585
- uses: actions/checkout@v4
8686
- name: install lib

.github/workflows/cicd-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
strategy:
106106
fail-fast: true
107107
matrix:
108-
ops: [ 'manifests', 'mod-vendor', 'generate', 'lint', 'staticcheck', 'test' ]
108+
ops: [ 'manifests', 'mod-vendor', 'generate', 'lint', 'test' ]
109109
steps:
110110
- uses: actions/checkout@v4
111111
- name: install lib

.github/workflows/release-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: true
3030
matrix:
31-
ops: [ 'manifests', 'mod-vendor', 'generate', 'lint', 'staticcheck', 'test' ]
31+
ops: [ 'manifests', 'mod-vendor', 'generate', 'lint', 'test' ]
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: install lib

Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ vet: test-go-generate ## Run go vet against code.
145145
GOOS=$(GOOS) $(GO) vet -mod=mod ./...
146146

147147
.PHONY: lint-fast
148-
lint-fast: staticcheck vet golangci-lint # [INTERNAL] Run all lint job against code.
148+
lint-fast: vet golangci-lint # [INTERNAL] Run all lint job against code.
149149

150150
.PHONY: lint
151151
lint: test-go-generate generate ## Run default lint job against code.
@@ -155,10 +155,6 @@ lint: test-go-generate generate ## Run default lint job against code.
155155
golangci-lint: golangci-lint-bin generate ## Run golangci-lint against code.
156156
$(GOLANGCILINT) run ./...
157157

158-
.PHONY: staticcheck
159-
staticcheck: staticcheck-bin test-go-generate generate ## Run staticcheck against code.
160-
$(STATICCHECK) ./...
161-
162158
.PHONY: build-checks
163159
build-checks: fmt vet goimports lint-fast ## Run build checks.
164160

@@ -396,12 +392,6 @@ golangci-lint-bin: $(LOCALBIN) ## Download golangci-lint locally if necessary.
396392
mv "$(LOCALBIN)/golangci-lint" "$(GOLANGCILINT)"; \
397393
}
398394

399-
STATICCHECK_VERSION = v0.6.1
400-
STATICCHECK = $(LOCALBIN)/staticcheck-$(STATICCHECK_VERSION)
401-
.PHONY: staticcheck-bin
402-
staticcheck-bin: $(LOCALBIN) ## Download staticcheck locally if necessary.
403-
$(call go-install-tool,$(STATICCHECK),honnef.co/go/tools/cmd/staticcheck,$(STATICCHECK_VERSION))
404-
405395
GOIMPORTS_VERSION = v0.34.0
406396
GOIMPORTS = $(LOCALBIN)/goimports-$(GOIMPORTS_VERSION)
407397
.PHONY: goimports-bin

0 commit comments

Comments
 (0)