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" "time"
"bytes" "bytes"
"github.com/docker/docker/api/types/image" "github.com/docker/docker/api/types/image"
"github.com/docker/docker/pkg/stringid" "github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/pkg/stringutils" "github.com/docker/docker/pkg/stringutils"

View File

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

View File

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

View File

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