runner/run_task.go
File run_task.go
has 570 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
package runner
import (
"context"
"fmt"
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 runTaskCommandBuilderFactory
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
runID string,
config *config.Config,
containerOptions *containerOptions,
scratch *scratch.ScratchSpace,
task *config.RunTask,
Method runTaskRunner.exportEnvironmentFile
has 5 return statements (exceeds 4 allowed). Open
Open
func (r *runTaskRunner) exportEnvironmentFile(context *RunContext, path string) bool {
workspace := r.scratch.Workspace()
realPath, err := filepath.Abs(filepath.Join(workspace, path))
if err != nil {
Method runTaskCommandBuilderState.addScriptOptions
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *runTaskCommandBuilderState) addScriptOptions(cb *command.Builder) error {
if s.task.Script == "" {
return nil
}
Method runTaskCommandBuilderState.addCommandOptions
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *runTaskCommandBuilderState) addCommandOptions(cb *command.Builder) error {
if s.task.Script != "" {
return nil
}
Method runTaskRunner.Run
has 5 return statements (exceeds 4 allowed). Open
Open
func (r *runTaskRunner) Run(context *RunContext) bool {
r.logger.Info(
r.prefix,
"Beginning task",
)
exported const DefaultWorkspacePath should have comment (or a comment on this block) or be unexported Open
Open
DefaultWorkspacePath = "/workspace"
- Exclude checks
exported function NewRunTaskRunnerFactory should have comment or be unexported Open
Open
func NewRunTaskRunnerFactory(
- Exclude checks
exported type RunTaskRunnerFactory should have comment or be unexported Open
Open
RunTaskRunnerFactory func(
- Exclude checks