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:
jolheiser 2020-03-24 23:04:52 -05:00
parent d1cfced920
commit 23910383a6
No known key found for this signature in database
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 1 additions and 1 deletions

View File

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