errwrapped

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 7 Imported by: 0

README

CircleCI

errwrapped

errwrapped checks for code returning errors that are not wrapped by any wrapper library.

Install

go get -u github.com/bitkey-platform/errwrapped/cmd/errwrapped

Use

errwrapped ./...

Options

Wrapper library

Use the -wrapper flag to specify a wrapper library or function.

errwrapped -wrapper xerrors ./...

If not specified, errors is specified by default.

Ignore files

Use the -ignore flag to specify ignore file name patterns.

errwrapped -ignore vendors/,_test.go,/mock_ ./...

Documentation

Index

Constants

View Source
const Doc = "errwrapped is ..."

Variables

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

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