Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit bce48ae

Browse files
committed
Two new linters: interfacer and unconvert
* mvdan.cc/interfacer: A linter that suggests interface types. * github.com/mdempsky/unconvert: Analyzes Go packages to identify unnecessary type conversions; i.e., expressions T(x) where x already has type T.
1 parent 6ae84c1 commit bce48ae

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ codequality:
163163
@unused $(PKGS)
164164
@$(call ok)
165165

166+
@echo -n " INTERFACER"
167+
@go get mvdan.cc/interfacer
168+
@interfacer ./...
169+
@$(call ok)
170+
171+
@echo -n " UNCONVERT"
172+
@go get github.com/mdempsky/unconvert
173+
@unconvert -v $(PKGS)
174+
@$(call ok)
175+
166176
dist_all: dist_linux dist_darwin dist_win dist_bsd
167177

168178
define dist

0 commit comments

Comments
 (0)