lintutil

package
v0.0.0-...-6bcb061 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0, BSD-3-Clause Imports: 14 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(c lint.Checker, pkgs []string, opt *Options) ([]lint.Problem, *loader.Program, error)

func ProcessArgs

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

func ProcessFlagSet

func ProcessFlagSet(c lint.Checker, fs *flag.FlagSet) (results []string)

Types

type Options

type Options struct {
	Tags      []string
	LintTests bool
	Ignores   string
	GoVersion int
}

Jump to

Keyboard shortcuts

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