run golangci-lint and apply suggested fixes

This commit is contained in:
Christian Schwarz
2019-03-22 20:45:27 +01:00
parent afed762774
commit 5b97953bfb
67 changed files with 413 additions and 353 deletions
+6 -1
View File
@@ -31,7 +31,12 @@ generate: #not part of the build, must do that manually
go generate -x ./...
format:
goimports -srcdir . -local 'github.com/zrepl/zrepl' -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
# FIXME build dependency
goimports -srcdir . -local 'github.com/zrepl/zrepl' -w $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -name '*.pb.go' -not -name '*_enumer.go')
lint:
# v1.15.0 at the time of writing FIXME build dependency
golangci-lint run ./...
build:
@echo "INFO: In case of missing dependencies, run 'make vendordeps'"