albanm/nsi-queues

View on GitHub
lib/amqp.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function from has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

AMQPQueuesManager.prototype.from = function(queue, readyCallback, callback) {
    var that = this;
    // ready callback is optional
    if (callback === null) {
        callback = readyCallback;
Severity: Minor
Found in lib/amqp.js - About 1 hr to fix

    Function AMQPQueuesManager has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function AMQPQueuesManager(connection, callback) {
        EventEmitter.call(this);
    
        var that = this;
        that.connection = connection;
    Severity: Minor
    Found in lib/amqp.js - About 1 hr to fix

      Function inOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      AMQPQueuesManager.prototype.inOut = function(queue, message, headers, publishOptions, callback) {
      Severity: Minor
      Found in lib/amqp.js - About 35 mins to fix

        Function to has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        AMQPQueuesManager.prototype.to = function(queue, message, headers, publishOptions, callback) {
        Severity: Minor
        Found in lib/amqp.js - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status