Prohibit variable shadowing (#10177)

* Prohibit variable shadowing

* Fix outstanding shadowed variables
This commit is contained in:
Hanzei
2019-01-31 12:16:16 +01:00
committed by Jesús Espino
parent cd30a1f242
commit 0c981aa010
3 changed files with 4 additions and 4 deletions

View File

@@ -290,7 +290,7 @@ clean-docker: ## Deletes the docker containers for local development.
govet: ## Runs govet against all packages.
@echo Running GOVET
$(GO) vet $(GOFLAGS) $(TE_PACKAGES) || exit 1
$(GO) vet -shadow $(GOFLAGS) $(TE_PACKAGES) || exit 1
ifeq ($(BUILD_ENTERPRISE_READY),true)
$(GO) vet $(GOFLAGS) $(EE_PACKAGES) || exit 1