lintflags

package
v0.0.0-...-83f582a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SortNone     SortKey = "none"
	SortPath             = "path"
	SortLine             = "line"
	SortColumn           = "column"
	SortSeverity         = "severity"
	SortMessage          = "message"
	SortLinter           = "linter"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	NoVendoredLinters bool
	Fast              bool
	Install           bool
	Update            bool
	Force             bool
	Debug             bool
	Concurrency       int
	Exclude           cli.StringSlice
	Include           cli.StringSlice
	Skip              cli.StringSlice
	// Vendor            bool
	CycloOver        int
	LineLength       int
	MinConfidence    float64
	MinOccurrences   int
	MinConstLength   int
	DuplThreshold    int
	Sort             SortKey
	NoTests          bool
	Deadline         time.Duration
	Errors           bool
	JSON             bool
	Checkstyle       bool
	EnableGC         bool
	Aggregate        bool
	Disable          cli.StringSlice
	Enable           cli.StringSlice
	Linter           cli.StringSlice
	MessageOverrides cli.StringSlice
	Severity         cli.StringSlice
	DisableAll       bool
	EnableAll        bool
}

func (*Data) LintArgs

func (f *Data) LintArgs() []string

func (*Data) LintFlags

func (f *Data) LintFlags() []cli.Flag

type SortKey

type SortKey string

func (*SortKey) Set

func (k *SortKey) Set(value string) error

func (SortKey) String

func (k SortKey) String() string

Jump to

Keyboard shortcuts

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