Skip to content

Commit

Permalink
lint: Ignore 'dotfiles' warnings in test/
Browse files Browse the repository at this point in the history
This allows to keep using
```
import (
	. "github.com/onsi/gomega"
	. "github.com/onsi/ginkgo/v2"
)
```

Unfortunately this also allows to use
```
import . "fmt"
```

I haven't been able to make the ignore rule more fine-grained.
I don't expect this will happen though.

Allowing to use non-namespaced `gomega` and `ginkgo` API calls should
make writing tests more convenient/more readable.
  • Loading branch information
cfergeau committed Feb 26, 2024
1 parent cfd7b3c commit 46410e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ linters:
- unused
- misspell
- revive

issues:
exclude-rules:
- path: 'test/*'
text: 'dot-imports: should not use dot imports'
linters:
- revive

0 comments on commit 46410e2

Please sign in to comment.