lintutil

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT, MIT Imports: 18 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 []lint.Checker, paths []string, opt *Options) ([]lint.Problem, error)

func ProcessArgs

func ProcessArgs(name string, cs []lint.Checker, args []string)

func ProcessFlagSet

func ProcessFlagSet(cs []lint.Checker, fs *flag.FlagSet)

Types

type Options

type Options struct {
	Config config.Config

	Tags          []string
	LintTests     bool
	Ignores       string
	GoVersion     int
	ReturnIgnored bool

	MaxConcurrentJobs int
	PrintStats        bool
}

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