diff --git a/rule/redundant-import-alias.go b/rule/redundant-import-alias.go index ce4ccd35a..fa5281f24 100644 --- a/rule/redundant-import-alias.go +++ b/rule/redundant-import-alias.go @@ -23,7 +23,7 @@ func (*RedundantImportAlias) Apply(file *lint.File, _ lint.Arguments) []lint.Fai if getImportPackageName(imp) == imp.Name.Name { failures = append(failures, lint.Failure{ Confidence: 1, - Failure: fmt.Sprintf("Import alias \"%s\" is not used", imp.Name.Name), + Failure: fmt.Sprintf("Import alias \"%s\" is redundant", imp.Name.Name), Node: imp, Category: "imports", }) diff --git a/testdata/redundant-import-alias.go b/testdata/redundant-import-alias.go index a4eff0854..555bca261 100644 --- a/testdata/redundant-import-alias.go +++ b/testdata/redundant-import-alias.go @@ -5,8 +5,8 @@ import( "strings" _ "crypto/md5" str "strings" - strings "strings" // MATCH /Import alias "strings" is not used/ + strings "strings" // MATCH /Import alias "strings" is redundant/ crypto "crypto/md5" - md5 "crypto/md5" // MATCH /Import alias "md5" is not used/ + md5 "crypto/md5" // MATCH /Import alias "md5" is redundant/ )