Change other to include any path with a "."
stdlib doesn't have any periods in their paths (as far as I know) Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
d1cfced920
commit
23910383a6
|
@ -24,7 +24,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
|
|||
val := im.Path.Value
|
||||
if importHasPrefix(val, "code.gitea.io") {
|
||||
lvl = 2
|
||||
} else if sliceHasPrefix(val, "xorm.io", "github.com") {
|
||||
} else if strings.Contains(val, ".") {
|
||||
lvl = 3
|
||||
} else {
|
||||
lvl = 1
|
||||
|
|
Loading…
Reference in New Issue