RackHD/on-core

View on GitHub
lib/workflow/messengers/messenger-AMQP.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function amqpMessengerFactory has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function amqpMessengerFactory(
    Constants,
    taskProtocol,
    eventsProtocol,
    taskGraphRunnerProtocol,
Severity: Major
Found in lib/workflow/messengers/messenger-AMQP.js - About 2 hrs to fix

    Function publishTaskFinished has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        AMQPMessenger.prototype.publishTaskFinished = function(domain, task, swallowError) {
            var errorMsg;
            if (task.error && task.error.stack) {
                errorMsg = task.error.stack;
            } else if (task.error) {
    Severity: Minor
    Found in lib/workflow/messengers/messenger-AMQP.js - About 1 hr to fix

      Function amqpMessengerFactory has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          Constants,
          taskProtocol,
          eventsProtocol,
          taskGraphRunnerProtocol,
          waterline,
      Severity: Major
      Found in lib/workflow/messengers/messenger-AMQP.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status