Fix unit tests

This commit is contained in:
Michael Barz
2020-09-21 15:04:10 +02:00
parent c41440e008
commit 7a8556c04a
6 changed files with 11 additions and 3 deletions
+4
View File
@@ -69,6 +69,10 @@ fmt:
vet:
go vet $(PACKAGES)
.PHONY: staticcheck
staticcheck:
go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
.PHONY: lint
lint:
for PKG in $(PACKAGES); do go run golang.org/x/lint/golint -set_exit_status $$PKG || exit 1; done;
+3 -3
View File
@@ -72,9 +72,9 @@ fmt:
vet:
go vet $(PACKAGES)
# .PHONY: staticcheck
# staticcheck:
# go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
.PHONY: staticcheck
staticcheck:
go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
.PHONY: lint
lint:
+1
View File
@@ -0,0 +1 @@
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]
@@ -0,0 +1 @@
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]
+1
View File
@@ -0,0 +1 @@
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]
+1
View File
@@ -0,0 +1 @@
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]