Showing 53 of 348 total issues
Function SetupRunner
has 191 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func SetupRunner(
cfg *config.Config,
appOptions *options.AppOptions,
runOptions *options.RunOptions,
) (runner *Runner, err error) {
File run_task.go
has 570 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
package runner
import (
"context"
"fmt"
Method Runner.Run
has 75 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (r *Runner) Run(plans []string) bool {
r.logger.Info(
nil,
"Beginning run %s",
r.runID,
Method StageRunner.buildTaskRunnerFunc
has 69 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (r *StageRunner) buildTaskRunnerFunc(
stageTask *config.StageTask,
index int,
task config.Task,
context *RunContext,
Method PlanRunner.Run
has 63 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (r *PlanRunner) Run(
context *RunContext,
name string,
prefix *logging.Prefix,
) bool {
Method Config.Translate
has 61 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *Config) Translate(parent *config.Config) (*config.Config, error) {
extends, err := util.UnmarshalStringList(c.Extends)
if err != nil {
return nil, err
}
Function LoadFile
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func LoadFile(path string, override *config.Override) (*config.Config, error) {
overridePaths, err := getOverridePaths()
if err != nil {
return nil, fmt.Errorf(
"failed to determine override paths: %s",
Function NewRunner
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
logger logging.Logger,
config *config.Config,
taskRunnerFactory TaskRunnerFactory,
scratch *scratch.ScratchSpace,
Function SetupRunner
has 11 return statements (exceeds 4 allowed). Open
Open
func SetupRunner(
cfg *config.Config,
appOptions *options.AppOptions,
runOptions *options.RunOptions,
) (runner *Runner, err error) {
Function NewRunTaskRunnerFactory
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
cfg *config.Config,
runID string,
scratch *scratch.ScratchSpace,
containerLists *ContainerLists,
Function NewStageRunner
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
logger logging.Logger,
config *config.Config,
taskRunnerFactory TaskRunnerFactory,
plan *config.Plan,
Method Config.Translate
has 10 return statements (exceeds 4 allowed). Open
Open
func (c *Config) Translate(parent *config.Config) (*config.Config, error) {
extends, err := util.UnmarshalStringList(c.Extends)
if err != nil {
return nil, err
}
Function LoadFile
has 9 return statements (exceeds 4 allowed). Open
Open
func LoadFile(path string, override *config.Override) (*config.Config, error) {
overridePaths, err := getOverridePaths()
if err != nil {
return nil, fmt.Errorf(
"failed to determine override paths: %s",
Function runTaskCommandBuilderFactory
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
runID string,
config *config.Config,
containerOptions *containerOptions,
scratch *scratch.ScratchSpace,
task *config.RunTask,
Function newLogger
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
processor *processor,
outStream io.Writer,
outFile io.Writer,
errStream io.Writer,
errFile io.Writer,
Function setupLogger
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
cleanup *Cleanup,
scratch *scratch.ScratchSpace,
quiet bool,
verbose bool,
colorize bool,
Function newRegistrySet
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
logger logging.Logger,
env environment.Environment,
registries []config.Registry,
factory loginFactory,
Method Override.Translate
has 7 return statements (exceeds 4 allowed). Open
Open
func (o *Override) Translate() (*config.Override, error) {
options, err := o.Options.Translate()
if err != nil {
return nil, err
}
Method TaskExtendsResolver.resolve
has 7 return statements (exceeds 4 allowed). Open
Open
func (r *TaskExtendsResolver) resolve(task Task) error {
var (
name = task.GetName()
extends = task.GetExtends()
)
Function setupRegistries
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
cfg *config.Config,
cleanup *Cleanup,
logger logging.Logger,
env []string,