lib/service-graph.js
Function ServiceGraph
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ServiceGraph(TaskGraph, store, taskGraphProtocol, Constants, Promise, _) {
var exports = {
// Set cancelTaskGraph default timeout
timeout: 5000
};
Function start
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.start = function(domain) {
var self = this;
domain = domain || Constants.Task.DefaultDomain;
return Promise.all([store.getGraphDefinitions(), store.getServiceGraphs()])
Function ServiceGraph
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ServiceGraph(TaskGraph, store, taskGraphProtocol, Constants, Promise, _) {