Improve go-critic intergration in the server
This commit is contained in:
committed by
Mumbi Francis
parent
d5c60b6d1b
commit
4b234516f5
@@ -213,7 +213,7 @@ vet:
|
||||
$(GO) vet ./...
|
||||
|
||||
critic: $(GOCRITIC)
|
||||
$(GOCRITIC) check-project .
|
||||
$(GOCRITIC) check -disable='commentFormatting,captLocal' ./...
|
||||
|
||||
staticcheck: $(STATICCHECK)
|
||||
$(STATICCHECK) ./pkg/... ./system/... ./compose/... ./automation/...
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user