Showing 2 of 2 total issues

Function connect has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Disque.prototype.connect = function (callback) {
  if (this.status === 'connecting' || this.status === 'connect') {
    return false;
  }
  this.setStatus('connecting');
Severity: Major
Found in lib/disque.js - About 2 hrs to fix

    Function connectToNext has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function connectToNext() {
        _this.currentPoint += 1;
        if (_this.currentPoint === _this.options.disqueNodes.length) {
          _this.emit('error', new Error('All nodes are unreachable.'));
          return;
    Severity: Minor
    Found in lib/disque.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language