RackHD/on-taskgraph

View on GitHub
lib/service-graph.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function ServiceGraph has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function ServiceGraph(TaskGraph, store, taskGraphProtocol, Constants, Promise, _) {
    var exports = {
        // Set cancelTaskGraph default timeout
        timeout: 5000
    };
Severity: Major
Found in lib/service-graph.js - About 3 hrs to fix

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

        exports.start = function(domain) {
            var self = this;
            domain = domain || Constants.Task.DefaultDomain;
    
            return Promise.all([store.getGraphDefinitions(), store.getServiceGraphs()])
    Severity: Minor
    Found in lib/service-graph.js - About 2 hrs to fix

      Function ServiceGraph has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function ServiceGraph(TaskGraph, store, taskGraphProtocol, Constants, Promise, _) {
      Severity: Minor
      Found in lib/service-graph.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status