lintutil

package
v0.0.1-2019.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT, BSD-3-Clause Imports: 25 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 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
}

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