mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-11 22:08:45 -04:00
dev: add test for grouper linter (#4585)
This commit is contained in:
parent
ad7eab9635
commit
07ffe48920
2 changed files with 10 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue