Commit 4e63d0be authored by Yong Tang's avatar Yong Tang Committed by John Belamaric

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: default avatarYong Tang <yong.tang.github@outlook.com>
parent caf2553d
......@@ -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:
......
package dnstap
import (
"github.com/mholt/caddy"
"testing"
"github.com/mholt/caddy"
)
func TestConfig(t *testing.T) {
......
......@@ -2,11 +2,12 @@ package rewrite
import (
"fmt"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
"regexp"
"strconv"
"strings"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
)
type nameRule struct {
......
package rewrite
import (
"github.com/miekg/dns"
"regexp"
"strconv"
"strings"
"github.com/miekg/dns"
)
// ResponseRule contains a rule to rewrite a response with.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment