Documentation ¶
Overview ¶
Package logruswitherror implements a static analyzer to ensure that log statements do not use errors in templated log statements. Authors should use logrus.WithError().
Index ¶
Constants ¶
View Source
const Doc = "This analyzer requires that log statements do not use errors in templated log statements."
Doc explaining the tool.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "logruswitherror", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer runs static analysis.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.