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 b8518e6 commit d99cb82Copy full SHA for d99cb82
pkg/analyzer/check/check.go
@@ -9,7 +9,7 @@ import (
9
// Check checks Go code and returns check result
10
func Check(src string) (*Result, error) {
11
fset := token.NewFileSet()
12
- _, err := parser.ParseFile(fset, "main.go", src, parser.AllErrors)
+ _, err := parser.ParseFile(fset, "main.go", src, parser.DeclarationErrors)
13
if err == nil {
14
return &Result{HasErrors: false}, nil
15
}
0 commit comments