update gochecknoglobals

Apply
abbdf6ec0a
This commit is contained in:
Denis Isaev 2019-02-11 09:49:05 +03:00
parent 183765e6d4
commit 7c49721144
No known key found for this signature in database
GPG Key ID: A36A0EC8E27A1A01

View File

@ -49,7 +49,7 @@ func (lint Gochecknoglobals) checkFile(f *ast.File, fset *token.FileSet) []resul
}
res = append(res, result.Issue{
Pos: fset.Position(genDecl.TokPos),
Pos: fset.Position(vn.Pos()),
Text: fmt.Sprintf("%s is a global variable", formatCode(vn.Name, nil)),
FromLinter: lint.Name(),
})