mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
Enable goimports check
Validates that goimports has been run on all files Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
parent
dc53e37d98
commit
795e11d5fb
@ -5,6 +5,7 @@
|
||||
"EnableGC": true,
|
||||
"Enable": [
|
||||
"gofmt",
|
||||
"goimports",
|
||||
"golint",
|
||||
"vet"
|
||||
]
|
||||
|
@ -1,9 +1,10 @@
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"github.com/docker/distribution/configuration"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/docker/distribution/configuration"
|
||||
)
|
||||
|
||||
// EndpointConfig covers the optional configuration parameters for an active
|
||||
|
@ -40,12 +40,12 @@ package base
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"time"
|
||||
|
||||
dcontext "github.com/docker/distribution/context"
|
||||
prometheus "github.com/docker/distribution/metrics"
|
||||
storagedriver "github.com/docker/distribution/registry/storage/driver"
|
||||
"github.com/docker/go-metrics"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,13 +5,14 @@ import (
|
||||
"crypto/rand"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
dcontext "github.com/docker/distribution/context"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
dcontext "github.com/docker/distribution/context"
|
||||
|
||||
"reflect" // used as a replacement for testify
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user