Documentation ¶
Overview ¶
Package noresultvalues defines an Analyzer that applies suggested fixes to errors of the type "no result values expected".
Analyzer noresultvalues ¶
noresultvalues: suggested fixes for unexpected return values
This checker provides suggested fixes for type errors of the type "no result values expected" or "too many return values". For example:
func z() { return nil }
will turn into
func z() { return }
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "noresultvalues", Doc: analysisinternal.MustExtractDoc(doc, "noresultvalues"), Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, RunDespiteErrors: true, URL: "https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/noresultvalues", }
Functions ¶
func FixesError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.