Documentation ¶
Overview ¶
Package lintutil provides helpers for writing linter command lines.
Index ¶
- func FlagSet(name string) *flag.FlagSet
- func Lint(cs []lint.Checker, pkgs []string, opt *Options) ([][]lint.Problem, error)
- func ProcessArgs(name string, cs []CheckerConfig, args []string)
- func ProcessFlagSet(confs []CheckerConfig, fs *flag.FlagSet)
- type CheckerConfig
- type JSONOutput
- type Options
- type OutputFormatter
- type TextOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessArgs ¶
func ProcessArgs(name string, cs []CheckerConfig, args []string)
func ProcessFlagSet ¶
func ProcessFlagSet(confs []CheckerConfig, fs *flag.FlagSet)
Types ¶
type CheckerConfig ¶
type JSONOutput ¶
type JSONOutput struct {
// contains filtered or unexported fields
}
func (JSONOutput) Format ¶
func (o JSONOutput) Format(p lint.Problem)
type OutputFormatter ¶
type TextOutput ¶
type TextOutput struct {
// contains filtered or unexported fields
}
func (TextOutput) Format ¶
func (o TextOutput) Format(p lint.Problem)
Click to show internal directories.
Click to hide internal directories.