Showing 22 of 22 total issues
File Vhost.js
has 442 lines of code (exceeds 250 allowed). Consider refactoring. Open
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');
File configure.js
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
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;
File Subscription.js
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const debug = require('debug')('rascal:Subscription');
const _ = require('lodash');
const format = require('util').format;
const crypto = require('crypto');
const async = require('async');
Function Publication
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Publication(vhost, borrowChannelFn, returnChannelFn, destroyChannelFn, publishFn, config) {
Function handleChannelError
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function handleChannelError(session, config, removeDisconnectionHandler, attempt, err) {
Function execute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
execute(session, message, err, strategyConfig, next) {
Function create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
create(broker, vhost, counter, config, next) {
Function handle
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.handle = function (session, message, err, recoveryOptions, next) {
Function execute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
execute(session, message, err, strategyConfig, next) {
Function execute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
execute(session, message, err, strategyConfig, next) {
Function execute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
execute(session, message, err, strategyConfig, next) {
Function execute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
execute(session, message, err, strategyConfig, next) {
Function validateVhostChildAttributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function validateVhostChildAttributes(vhostName, type, child, childName, valid) {
Function ackOrNack
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ackOrNack(session, message, err, options, next) {
Function handleChannelError
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function handleChannelError(borked, messageId, emitter, config, err) {
Function encrypt
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function encrypt(algorithm, keyHex, ivLength, unencrypted, next) {
Function execute
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
execute(session, message, err, strategyConfig, next) {
Function decrypt
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function decrypt(algorithm, keyHex, ivHex, encrypted, next) {
Avoid too many return
statements within this function. Open
Open
if (options && options.all) return session._ackAll(message, next);
Avoid too many return
statements within this function. Open
Open
if (arguments.length === 4) return ackOrNack(session, message, err, options, emitOnError.bind(null, session));