From 0cffc7994da2b982bbca880fc3eda63548bd60c6 Mon Sep 17 00:00:00 2001 From: Christoph Mertz Date: Sun, 18 Oct 2020 11:29:11 +0200 Subject: [PATCH] reorder imports Reorder imports with `goimports`. --- cmd/kubeconform/main.go | 7 ++++--- pkg/cache/schemacache.go | 3 ++- pkg/resource/signature_test.go | 3 ++- pkg/validator/validator.go | 1 + pkg/validator/validator_test.go | 3 ++- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/cmd/kubeconform/main.go b/cmd/kubeconform/main.go index 82f0fb8..303a1eb 100644 --- a/cmd/kubeconform/main.go +++ b/cmd/kubeconform/main.go @@ -4,16 +4,17 @@ import ( "bytes" "flag" "fmt" - "github.com/xeipuuv/gojsonschema" - "github.com/yannh/kubeconform/pkg/fsutils" - "github.com/yannh/kubeconform/pkg/output" "io" "io/ioutil" "os" "strings" "sync" + "github.com/xeipuuv/gojsonschema" + "github.com/yannh/kubeconform/pkg/cache" + "github.com/yannh/kubeconform/pkg/fsutils" + "github.com/yannh/kubeconform/pkg/output" "github.com/yannh/kubeconform/pkg/registry" "github.com/yannh/kubeconform/pkg/resource" "github.com/yannh/kubeconform/pkg/validator" diff --git a/pkg/cache/schemacache.go b/pkg/cache/schemacache.go index 6b8acd9..2290d4e 100644 --- a/pkg/cache/schemacache.go +++ b/pkg/cache/schemacache.go @@ -2,8 +2,9 @@ package cache import ( "fmt" - "github.com/xeipuuv/gojsonschema" "sync" + + "github.com/xeipuuv/gojsonschema" ) type SchemaCache struct { diff --git a/pkg/resource/signature_test.go b/pkg/resource/signature_test.go index 4279542..ea638c4 100644 --- a/pkg/resource/signature_test.go +++ b/pkg/resource/signature_test.go @@ -1,8 +1,9 @@ package resource_test import ( - "github.com/yannh/kubeconform/pkg/resource" "testing" + + "github.com/yannh/kubeconform/pkg/resource" ) func TestSignatureFromBytes(t *testing.T) { diff --git a/pkg/validator/validator.go b/pkg/validator/validator.go index d8b2551..f431895 100644 --- a/pkg/validator/validator.go +++ b/pkg/validator/validator.go @@ -2,6 +2,7 @@ package validator import ( "fmt" + "github.com/xeipuuv/gojsonschema" "sigs.k8s.io/yaml" ) diff --git a/pkg/validator/validator_test.go b/pkg/validator/validator_test.go index 128460a..f498ba6 100644 --- a/pkg/validator/validator_test.go +++ b/pkg/validator/validator_test.go @@ -2,8 +2,9 @@ package validator import ( "fmt" - "github.com/xeipuuv/gojsonschema" "testing" + + "github.com/xeipuuv/gojsonschema" ) func TestValidate(t *testing.T) {