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.
Click to show internal directories.
Click to hide internal directories.