errorfwrapv

package
v0.80.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package errorfwrapv implements a Go analysis linter that flags calls to fmt.Errorf that format error arguments with %v instead of %w, which breaks error-chain inspection via errors.Is and errors.As.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "errorfwrapv",
	Doc:      "reports fmt.Errorf calls that format error arguments with %v instead of %w",
	URL:      "https://github.com/github/gh-aw/tree/main/pkg/linters/errorfwrapv",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer is the errorfwrapv analysis pass.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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