errorhandle

package module
v0.0.0-...-4bd9ea8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 6 Imported by: 0

README

errorhandle

Go

Static analysis tool for Go that checks if errors are assigned to blank identifiers

https://pkg.go.dev/github.com/a2not/errorhandle

Install

go get -u github.com/a2not/errorhandle

what this does

  • detect receiving of returning error type value with _ variable

how to use it

make build
export PATH=$PATH:~/go/src/github.com/a2not/errorhandle/cmd/errorhandle
go vet -vettool=`which errorhandle`

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "errorhandle",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer is ...

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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