Skip to content

Commit b6bae36

Browse files
author
Brian Mendoza
committed
exclude goimports in controller tests
1 parent 877f768 commit b6bae36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ issues:
220220
- path: controller/suite_test.go
221221
linters:
222222
- gci
223+
# Exclude goimports check for controller tests that import both mocktest and ginkgo/gomega as dot imports.
224+
# goimports wants mocktest as a dot import in a separate group, but gci wants them in the same group.
225+
- path: controller/.*_controller_test.go
226+
linters:
227+
- goimports
223228

224229
# These are performance optimisations rather than style issues per se.
225230
# They warn when function arguments or range values copy a lot of memory

0 commit comments

Comments
 (0)