Skip to content

Commit 9322a1e

Browse files
committed
Configure goimports linter to group internal packages (nginx#123)
* Configure goimports linter to group internal packages * Make imports statement consistent
1 parent 646d4d1 commit 9322a1e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
linters-settings:
2+
goimports:
3+
local-prefixes: github.com/nginxinc/nginx-kubernetes-gateway
24
misspell:
35
locale: US
46
revive:

cmd/gateway/setup_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package main_test
33
import (
44
"errors"
55

6-
. "github.com/nginxinc/nginx-kubernetes-gateway/cmd/gateway"
7-
flag "github.com/spf13/pflag"
8-
96
. "github.com/onsi/ginkgo"
107
. "github.com/onsi/gomega"
8+
flag "github.com/spf13/pflag"
9+
10+
. "github.com/nginxinc/nginx-kubernetes-gateway/cmd/gateway"
1111
)
1212

1313
var domain string

0 commit comments

Comments
 (0)