aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2018-02-14 07:00:04 -0800
committerGravatar John Belamaric <jbelamaric@infoblox.com> 2018-02-14 10:00:04 -0500
commit4e63d0be355b1e3066f8d2d85e53ce7b821b4ab3 (patch)
tree50917b17272eb4b566773aa05eb85baf994498c6 /Makefile
parentcaf2553d7a39b5f0e69f5b4780c5ff03ff19c883 (diff)
downloadcoredns-4e63d0be355b1e3066f8d2d85e53ce7b821b4ab3.tar.gz
coredns-4e63d0be355b1e3066f8d2d85e53ce7b821b4ab3.tar.zst
coredns-4e63d0be355b1e3066f8d2d85e53ce7b821b4ab3.zip
Enable goimports check, and fixes several imports format (#1525)
This fix enables goimports check and fixes several imports format so that the import sections are prettier, e.g.: ``` import ( - "github.com/miekg/dns" "regexp" "strconv" "strings" + + "github.com/miekg/dns" ) ``` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8765bb37c..b57bdffa0 100644
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ gen:
linter:
go get -u github.com/alecthomas/gometalinter
gometalinter --install golint
- gometalinter --deadline=1m --disable-all --enable=gofmt --enable=golint --enable=vet --exclude=^vendor/ --exclude=^pb/ ./...
+ gometalinter --deadline=2m --disable-all --enable=gofmt --enable=golint --enable=vet --enable=goimports --exclude=^vendor/ --exclude=^pb/ ./...
.PHONY: clean
clean: