mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Prohibit variable shadowing (#10177)
* Prohibit variable shadowing * Fix outstanding shadowed variables
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user