From 23910383a624699437a859254c1588e1076b1bea Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 24 Mar 2020 23:04:52 -0500 Subject: [PATCH] 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 --- imports/imports.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/imports.go b/imports/imports.go index 04ca0ee..400a2b4 100644 --- a/imports/imports.go +++ b/imports/imports.go @@ -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