mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
fix: ignore dot import aliases in import-alias-naming rule (#938)
This commit is contained in:
3
testdata/import-alias-naming.go
vendored
3
testdata/import-alias-naming.go
vendored
@@ -1,7 +1,8 @@
|
||||
package fixtures
|
||||
|
||||
import (
|
||||
_ "strings"
|
||||
_ "strings" // _ aliases should be ignored
|
||||
. "dotimport" // . aliases should be ignored
|
||||
bar_foo "strings" // MATCH /import name (bar_foo) must match the regular expression: ^[a-z][a-z0-9]{0,}$/
|
||||
fooBAR "strings" // MATCH /import name (fooBAR) must match the regular expression: ^[a-z][a-z0-9]{0,}$/
|
||||
v1 "strings"
|
||||
|
||||
Reference in New Issue
Block a user