We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700e9a9 commit 2aaa9c4Copy full SHA for 2aaa9c4
analyzers/util.go
@@ -62,6 +62,7 @@ func newIssue(analyzerID string, desc string, fileSet *token.FileSet,
62
pos token.Pos, severity, confidence issue.Score,
63
) *issue.Issue {
64
file := fileSet.File(pos)
65
+ // This can occur when there is a compilation issue into the code.
66
if file == nil {
67
return &issue.Issue{}
68
}
0 commit comments