noresultvalues

package
v0.0.0-...-b73abcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 9 Imported by: 0

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/github.com/gnoverse/gnopls/internal/analysis/noresultvalues",
}

Functions

func FixesError

func FixesError(msg string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL