1
0
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:
Denis Voytyuk
2023-11-26 08:57:34 +01:00
committed by GitHub
parent cdc8caf36b
commit 07eb59669a
3 changed files with 4 additions and 7 deletions

View File

@@ -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"