Prohibit variable shadowing (#30)
This commit is contained in:
parent
ff7758dc6a
commit
c415b6b7b8
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ endif
|
|||
govet:
|
||||
ifneq ($(HAS_SERVER),)
|
||||
@echo Running govet
|
||||
@$(GO) vet $$(go list ./server/...) || exit 1
|
||||
@$(GO) vet -shadow $$(go list ./server/...) || exit 1
|
||||
@echo Govet success
|
||||
endif
|
||||
|
||||
|
|
Reference in a new issue