RackHD/on-taskgraph

View on GitHub
lib/task-graph-runner.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function runnerFactory has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function runnerFactory(
    waterline,
    core,
    TaskScheduler,
    TaskRunner,
Severity: Major
Found in lib/task-graph-runner.js - About 2 hrs to fix

    Function runnerFactory has 14 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        waterline,
        core,
        TaskScheduler,
        TaskRunner,
        LeaseExpirationPoller,
    Severity: Major
    Found in lib/task-graph-runner.js - About 1 hr to fix

      Function start has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          Runner.prototype.start = function(options) {
              var self = this;
      
              return core.start()
              // Remove profiles and templates from db to force reload and update file
      Severity: Minor
      Found in lib/task-graph-runner.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status