Add goimports to linting

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2017-05-02 15:36:45 -04:00
parent 690ef8af79
commit 1378bf3dbe
4 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import (
"time"
"bytes"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/pkg/stringutils"

View File

@ -11,6 +11,7 @@ import (
"golang.org/x/net/context"
"encoding/json"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/registry"

View File

@ -1,9 +1,10 @@
package client
import (
"github.com/docker/docker/api/types/filters"
"net/url"
"regexp"
"github.com/docker/docker/api/types/filters"
)
var headerRegexp = regexp.MustCompile(`\ADocker/.+\s\((.+)\)\z`)

View File

@ -4,5 +4,5 @@
"Exclude": ["cli/compose/schema/bindata.go"],
"DisableAll": true,
"Enable": ["gofmt", "vet", "golint"]
"Enable": ["gofmt", "vet", "golint", "goimports"]
}