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

Commit

Permalink
Two new linters: interfacer and unconvert
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
bpicode committed Apr 24, 2018
1 parent 6ae84c1 commit bce48ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ codequality:
@unused $(PKGS)
@$(call ok)

@echo -n " INTERFACER"
@go get mvdan.cc/interfacer
@interfacer ./...
@$(call ok)

@echo -n " UNCONVERT"
@go get github.com/mdempsky/unconvert
@unconvert -v $(PKGS)
@$(call ok)

dist_all: dist_linux dist_darwin dist_win dist_bsd

define dist
Expand Down

0 comments on commit bce48ae

Please sign in to comment.