forbidigo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: Apache-2.0 Imports: 7 Imported by: 12

Documentation

Overview

nouse provides a linter for forbidding the use of specific identifiers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPatterns

func DefaultPatterns() []string

Types

type Issue

type Issue interface {
	Details() string
	Position() token.Position
	String() string
}

type Linter

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

func NewLinter

func NewLinter(patterns []string) (*Linter, error)

func (*Linter) Run

func (l *Linter) Run(fset *token.FileSet, nodes ...ast.Node) ([]Issue, error)

type UsedIssue

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

func (UsedIssue) Details

func (a UsedIssue) Details() string

func (UsedIssue) Position

func (a UsedIssue) Position() token.Position

func (UsedIssue) String

func (a UsedIssue) String() string

Jump to

Keyboard shortcuts

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