mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
feat: add support for import-alias-naming rule (#881)
This commit is contained in:
16
testdata/import-alias-naming-custom-config.go
vendored
Normal file
16
testdata/import-alias-naming-custom-config.go
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package fixtures
|
||||
|
||||
import (
|
||||
_ "strings"
|
||||
bar_foo "strings" // MATCH /import name (bar_foo) must match the regular expression: ^[a-z]+$/
|
||||
fooBAR "strings" // MATCH /import name (fooBAR) must match the regular expression: ^[a-z]+$/
|
||||
v1 "strings" // MATCH /import name (v1) must match the regular expression: ^[a-z]+$/
|
||||
magical "magic/hat"
|
||||
)
|
||||
|
||||
func somefunc() {
|
||||
fooBAR.Clone("")
|
||||
bar_foo.Clone("")
|
||||
v1.Clone("")
|
||||
magical.Clone("")
|
||||
}
|
||||
Reference in New Issue
Block a user