Documentation
¶
Overview ¶
Package lintcli implements the argument handling and output of the `clicky lint` command on top of the lint package.
Index ¶
- func BindFlags(flags *pflag.FlagSet, opts *Options)
- func HelpRequested(args []string) bool
- func ParseSeverityOverrides(values []string) (map[string]lint.Severity, error)
- func RawArgs(args []string) ([]string, bool)
- func Render(w io.Writer, result *lint.Result, opts Options) error
- func Run(w io.Writer, args []string) error
- func RunRaw(args []string) error
- func SourceFlagPresent(args []string) bool
- type ExitError
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelpRequested ¶
func ParseSeverityOverrides ¶
ParseSeverityOverrides reads the --severity flags into the map the runner takes. Rule IDs are validated by the runner against the real catalogue, so a typo surfaces there rather than being silently dropped here.
func RawArgs ¶
RawArgs reports whether args select the raw go/analysis driver and, if so, returns the arguments to hand to it.
func Run ¶
Run parses the non-raw lint arguments, lints the packages and renders the result to w, returning ExitError when error-level diagnostics were found.
func SourceFlagPresent ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.