lintutil

package
v0.0.0-...-35a9f45 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT, BSD-3-Clause Imports: 18 Imported by: 3

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