dev: add test for grouper linter (#4585)
This commit is contained in:
parent
ad7eab9635
commit
07ffe48920
test/testdata
3
test/testdata/configs/grouper.yml
vendored
Normal file
3
test/testdata/configs/grouper.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
linters-settings:
|
||||||
|
grouper:
|
||||||
|
import-require-grouping: true
|
7
test/testdata/grouper.go
vendored
Normal file
7
test/testdata/grouper.go
vendored
Normal 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") }
|
Loading…
x
Reference in New Issue
Block a user