1
0
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:
Denis Voytyuk
2023-08-28 15:26:00 +02:00
committed by GitHub
parent 0357df7bc0
commit f900b6c2d4
7 changed files with 145 additions and 0 deletions

View 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("")
}