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