asteris-llc/converge

View on GitHub
apply/pipeline.go

Summary

Maintainability
A
1 hr
Test Coverage

Method pipelineGen.DependencyCheck has 5 return statements (exceeds 4 allowed).
Open

func (g *pipelineGen) DependencyCheck(ctx context.Context, taskI interface{}) (interface{}, error) {
    result, ok := taskI.(resultWrapper)
    if !ok {
        return nil, errors.New("input node is not a task wrapper")
    }
Severity: Major
Found in apply/pipeline.go - About 35 mins to fix

    Method pipelineGen.maybeRunFinalCheck has 5 return statements (exceeds 4 allowed).
    Open

    func (g *pipelineGen) maybeRunFinalCheck(ctx context.Context, resultI interface{}) (interface{}, error) {
        result, ok := resultI.(*Result)
        if !ok {
            return nil, fmt.Errorf("expected *Result but got %T", resultI)
        }
    Severity: Major
    Found in apply/pipeline.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status