Run staticcheck as part of GitHub CI

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-01-28 13:56:34 -07:00
parent 537358f88e
commit 3f652ceb02
4 changed files with 11 additions and 1 deletions

View File

@@ -69,6 +69,10 @@ etc/bash_completion.d/wwctl: wwctl
lint: $(config)
$(GOLANGCI_LINT) run --build-tags "$(WW_GO_BUILD_TAGS)" --timeout=5m ./...
.PHONY: staticcheck
staticcheck: $(GOLANG_STATICCHECK) $(config)
$(GOLANG_STATICCHECK) ./...
.PHONY: deadcode
deadcode: $(config)
$(GOLANG_DEADCODE) -test ./...