bannedfunc

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 4 Imported by: 0

README

bannedfunc

Documentation

Index

Constants

View Source
const (
	// Name is the name of the linter.
	Name = "bannedfunc"
	// Doc is the description of the linter.
	Doc = "Checks for use of banned functions"
)

Config is the configuration of the linter.

Variables

This section is empty.

Functions

This section is empty.

Types

type BannedFunc

type BannedFunc struct {
	// contains filtered or unexported fields
}

BannedFunc is the linter.

func NewLinter

func NewLinter(bannedfuncs map[string]string, pkg *types.Package, files []*ast.File) *BannedFunc

NewLinter returns a new bannedfunc linter.

func (*BannedFunc) Run

func (bf *BannedFunc) Run() []*Msg

Run runs this linter and returns a slice of messages.

type Msg

type Msg struct {
	Pos  token.Pos
	Tips string
}

Msg is a message.

Jump to

Keyboard shortcuts

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