dev: add test for grouper linter (#4585)

This commit is contained in:
Oleksandr Redko 2024-03-28 22:00:28 +02:00 committed by GitHub
parent ad7eab9635
commit 07ffe48920
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

3
test/testdata/configs/grouper.yml vendored Normal file
View File

@ -0,0 +1,3 @@
linters-settings:
grouper:
import-require-grouping: true

7
test/testdata/grouper.go vendored Normal file
View File

@ -0,0 +1,7 @@
//golangcitest:args -Egrouper
//golangcitest:config_path testdata/configs/grouper.yml
package testdata
import "fmt" // want "should only use grouped 'import' declarations"
func dummy() { fmt.Println("dummy") }