logruswitherror

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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