Run staticcheck as part of GitHub CI
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -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 ./...
|
||||
|
||||
Reference in New Issue
Block a user