sprintferrdot

package
v0.80.8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sprintferrdot implements a Go analysis linter that flags redundant .Error() calls on error values passed to fmt format functions.

When an error is formatted with %s or %v, the fmt package calls .Error() automatically, so calling .Error() explicitly before passing the value to the format function is redundant.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "sprintferrdot",
	Doc:      "reports redundant .Error() calls on error arguments passed to fmt format functions",
	URL:      "https://github.com/github/gh-aw/tree/main/pkg/linters/sprintferrdot",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer is the sprintf-err-dot 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