onebeyond/rascal

View on GitHub

Showing 22 of 22 total issues

File Vhost.js has 442 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const debug = require('debug')('rascal:Vhost');
const format = require('util').format;
const inherits = require('util').inherits;
const EventEmitter = require('events').EventEmitter;
const async = require('async');
Severity: Minor
Found in lib/amqp/Vhost.js - About 6 hrs to fix

    File configure.js has 320 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    const debug = require('debug')('rascal:config:configure');
    const format = require('util').format;
    const url = require('url');
    const _ = require('lodash');
    const uuid = require('uuid').v4;
    Severity: Minor
    Found in lib/config/configure.js - About 3 hrs to fix

      File Subscription.js has 282 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      const debug = require('debug')('rascal:Subscription');
      const _ = require('lodash');
      const format = require('util').format;
      const crypto = require('crypto');
      const async = require('async');
      Severity: Minor
      Found in lib/amqp/Subscription.js - About 2 hrs to fix

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

        function Publication(vhost, borrowChannelFn, returnChannelFn, destroyChannelFn, publishFn, config) {
        Severity: Minor
        Found in lib/amqp/Publication.js - About 45 mins to fix

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

            function handleChannelError(session, config, removeDisconnectionHandler, attempt, err) {
          Severity: Minor
          Found in lib/amqp/Subscription.js - About 35 mins to fix

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

                    execute(session, message, err, strategyConfig, next) {
            Severity: Minor
            Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                create(broker, vhost, counter, config, next) {
              Severity: Minor
              Found in lib/amqp/Subscription.js - About 35 mins to fix

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

                  this.handle = function (session, message, err, recoveryOptions, next) {
                Severity: Minor
                Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                          execute(session, message, err, strategyConfig, next) {
                  Severity: Minor
                  Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                            execute(session, message, err, strategyConfig, next) {
                    Severity: Minor
                    Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                              execute(session, message, err, strategyConfig, next) {
                      Severity: Minor
                      Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                                execute(session, message, err, strategyConfig, next) {
                        Severity: Minor
                        Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                            function validateVhostChildAttributes(vhostName, type, child, childName, valid) {
                          Severity: Minor
                          Found in lib/config/validate.js - About 35 mins to fix

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

                              function ackOrNack(session, message, err, options, next) {
                            Severity: Minor
                            Found in lib/amqp/Subscription.js - About 35 mins to fix

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

                              function handleChannelError(borked, messageId, emitter, config, err) {
                              Severity: Minor
                              Found in lib/amqp/Publication.js - About 35 mins to fix

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

                                  function encrypt(algorithm, keyHex, ivLength, unencrypted, next) {
                                Severity: Minor
                                Found in lib/amqp/Publication.js - About 35 mins to fix

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

                                          execute(session, message, err, strategyConfig, next) {
                                  Severity: Minor
                                  Found in lib/amqp/SubscriberError.js - About 35 mins to fix

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

                                      function decrypt(algorithm, keyHex, ivHex, encrypted, next) {
                                    Severity: Minor
                                    Found in lib/amqp/Subscription.js - About 35 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          if (options && options.all) return session._ackAll(message, next);
                                      Severity: Major
                                      Found in lib/amqp/Subscription.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            if (arguments.length === 4) return ackOrNack(session, message, err, options, emitOnError.bind(null, session));
                                        Severity: Major
                                        Found in lib/amqp/Subscription.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language