lintutil

package
v0.0.1-2020.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT, BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Overview

Package lintutil provides helpers for writing linter command lines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagSet

func FlagSet(name string) *flag.FlagSet

func InitializeAnalyzers

func InitializeAnalyzers(docs map[string]*lint.Documentation, analyzers map[string]*analysis.Analyzer) map[string]*analysis.Analyzer

func Lint

func Lint(cs []*analysis.Analyzer, cums []lint.CumulativeChecker, paths []string, opt *Options) ([]lint.Problem, error)

func NewVersionFlag

func NewVersionFlag() flag.Getter

func ProcessFlagSet

func ProcessFlagSet(cs []*analysis.Analyzer, cums []lint.CumulativeChecker, fs *flag.FlagSet)

Types

type Options

type Options struct {
	Config config.Config

	Tags                     string
	LintTests                bool
	GoVersion                int
	PrintAnalyzerMeasurement func(analysis *analysis.Analyzer, pkg *lint.Package, d time.Duration)
	RepeatAnalyzers          uint
}

type VersionFlag

type VersionFlag int

func (*VersionFlag) Get

func (v *VersionFlag) Get() interface{}

func (*VersionFlag) Set

func (v *VersionFlag) Set(s string) error

func (*VersionFlag) String

func (v *VersionFlag) String() string

Directories

Path Synopsis
Package format provides formatters for linter problems.
Package format provides formatters for linter problems.

Jump to

Keyboard shortcuts

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