3
0

Improve go-critic intergration in the server

This commit is contained in:
Mumbi Francis
2023-05-03 10:27:02 +03:00
committed by Mumbi Francis
parent d5c60b6d1b
commit 4b234516f5
2 changed files with 2 additions and 3 deletions

View File

@@ -213,7 +213,7 @@ vet:
$(GO) vet ./...
critic: $(GOCRITIC)
$(GOCRITIC) check-project .
$(GOCRITIC) check -disable='commentFormatting,captLocal' ./...
staticcheck: $(STATICCHECK)
$(STATICCHECK) ./pkg/... ./system/... ./compose/... ./automation/...

View File

@@ -38,7 +38,7 @@ CORTEZA_BINS = $(CODEGEN) $(JSONTPLEXEC)
########################################################################################################################
# Go Toolset
$(GOCRITIC):
$(GOINSTALL) github.com/go-critic/go-critic@latest
$(GOINSTALL) github.com/go-critic/go-critic/cmd/gocritic@latest
$(MOCKGEN):
$(GOINSTALL) github.com/golang/mock/mockgen@latest
@@ -87,5 +87,4 @@ COLOUR_RED=\033[0;31m
COLOUR_BLUE=\033[0;34m
COLOUR_END=\033[0m
#