Documentation ¶
Index ¶
- func AmalgomatedCheckCmd(amalgomatedCmdName string, args []string, stdout io.Writer) (*exec.Cmd, string)
- func AmalgomatedRunRawCheck(amalgomatedCmdName string, args []string, stdout io.Writer)
- func AssetRootCmd(creator Creator, upgradeConfigFn pluginapi.UpgradeConfigFn, short string) *cobra.Command
- func NewAmalgomatedChecker(typeName okgo.CheckerType, params ...AmalgomatedCheckerParam) okgo.Checker
- func RunCommandAndStreamOutput(cmd *exec.Cmd, lineParser func(line string) okgo.Issue, stdout io.Writer)
- type AmalgomatedCheckerParam
- func ParamArgs(args ...string) AmalgomatedCheckerParam
- func ParamIncludeProjectDirFlag() AmalgomatedCheckerParam
- func ParamLineParserWithWd(lineParserWithWd func(line, wd string) okgo.Issue) AmalgomatedCheckerParam
- func ParamMultiCPU(multiCPU okgo.CheckerMultiCPU) AmalgomatedCheckerParam
- func ParamPriority(priority okgo.CheckerPriority) AmalgomatedCheckerParam
- type Creator
- type CreatorFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmalgomatedCheckCmd ¶
func AmalgomatedRunRawCheck ¶
func AssetRootCmd ¶
func NewAmalgomatedChecker ¶
func NewAmalgomatedChecker(typeName okgo.CheckerType, params ...AmalgomatedCheckerParam) okgo.Checker
func RunCommandAndStreamOutput ¶
func RunCommandAndStreamOutput(cmd *exec.Cmd, lineParser func(line string) okgo.Issue, stdout io.Writer)
RunCommandAndStreamOutput runs the provided exec.Cmd. The output that is generated to Stdout and Stderr for the command is processed in a separate goroutine. Each line is provided to the provided lineParser and the JSON representation of the issue returned by the parser is written to the provided stdout. This function will not return until the underlying command has finished executing and all of the generated output has been processed and written to the provided stdout.
Types ¶
type AmalgomatedCheckerParam ¶
type AmalgomatedCheckerParam interface {
// contains filtered or unexported methods
}
func ParamArgs ¶ added in v1.0.0
func ParamArgs(args ...string) AmalgomatedCheckerParam
func ParamIncludeProjectDirFlag ¶ added in v1.0.0
func ParamIncludeProjectDirFlag() AmalgomatedCheckerParam
func ParamLineParserWithWd ¶ added in v1.0.0
func ParamLineParserWithWd(lineParserWithWd func(line, wd string) okgo.Issue) AmalgomatedCheckerParam
func ParamMultiCPU ¶ added in v1.50.0
func ParamMultiCPU(multiCPU okgo.CheckerMultiCPU) AmalgomatedCheckerParam
func ParamPriority ¶ added in v1.0.0
func ParamPriority(priority okgo.CheckerPriority) AmalgomatedCheckerParam
type Creator ¶
type Creator interface { Type() okgo.CheckerType Priority() okgo.CheckerPriority MultiCPU() okgo.CheckerMultiCPU Creator() CreatorFunction }
func AssetCheckerCreators ¶
func AssetCheckerCreators(assetPaths ...string) ([]Creator, []okgo.ConfigUpgrader, error)
func NewCreator ¶
func NewCreator(checkerType okgo.CheckerType, priority okgo.CheckerPriority, creatorFn CreatorFunction) Creator
func NewCreatorWithMultiCPU ¶ added in v1.50.0
func NewCreatorWithMultiCPU( checkerType okgo.CheckerType, priority okgo.CheckerPriority, multiCPU okgo.CheckerMultiCPU, creatorFn CreatorFunction) Creator
Source Files ¶
Click to show internal directories.
Click to hide internal directories.