analyzer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package analyzer provides a go/analysis Analyzed and Run method.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "altimports",
	Doc:  "Enforces alternative imports (e.g. errors -> github.com/pkg/errors).",
}

Analyzer is a configured *analysis.Analyzer.

Functions

func Run added in v0.0.5

func Run(pass *analysis.Pass, replacements []string) (interface{}, error)

Run runs the linter on a given *analysis.Pass for the given replacements.

Types

This section is empty.

Jump to

Keyboard shortcuts

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