checks

package
v0.0.0-...-abeb386 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	// Cmd returns the command represented by this checker
	Cmd() amalgomated.Cmd

	// Check runs the current checker on "all" packages using the provided configuration and returns the output. The
	// provided Cmder is used to invoke the check. "rootDir" is used as the root directory to determine the packages
	// that the checker is run on. Conceptually, this method uses "config" and "rootDir" to generate the arguments
	// required to check "all" packages (excluding any that the config specifies should be excluded), invokes the
	// Cmder using those arguments in the given working directory, and returns the filtered output.
	Check(runner amalgomated.Cmder, rootDir string, config params.OKGo) ([]checkoutput.Issue, error)

	// CheckPackages runs the current checker on the specified packages using the provided configuration and returns
	// the output. The provided Cmder is used to invoke the check. The root directory contained in the "packages"
	// parameter is used as the working directory of the Cmder. Conceptually, this method uses "config" and
	// "packages" to generate the arguments required to check the specified packages (excluding any that the config
	// specifies should be excluded), invokes the Cmder using those arguments in the given working directory, and
	// returns the filtered output.
	CheckPackages(runner amalgomated.Cmder, packages pkgpath.Packages, config params.OKGo) ([]checkoutput.Issue, error)
}

func GetChecker

func GetChecker(cmd amalgomated.Cmd) (Checker, error)

Jump to

Keyboard shortcuts

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