errwrapfmt

package module
v0.0.0-...-908c52c Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 5 Imported by: 0

README

errwrapfmt

GitHub go.mod Go version Go Reference Go Report Card

errwrapfmt finds wrong error wrap format.

Using the wrong format makes the stack trace redundant. An example is https://go.dev/play/p/pPTUFmBvToa

": %w" // OK
":%w"  // NG
"%w"   // NG

Install

go install github.com/YuyaAbo/errwrapfmt/cmd/errwrapfmt@latest

Usage

errwrapfmt ./...

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "errwrapfmt",
	Doc:  "finds wrong error wrap format",
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer finds wrong error wrap format.

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