nachonerd/memqueue

View on GitHub

Showing 3 of 3 total issues

Function pop has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MemQueue.prototype.pop = function(callback) {
    var self = this;
    self.broker.get(
        self.key+"sem",
        function (err, data) {
Severity: Major
Found in src/memqueue.js - About 2 hrs to fix

    Function push has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    MemQueue.prototype.push = function(value, lifetime, callback) {
        var self = this;
        self.broker.get(
            self.key+"sem",
            function (err, data) {
    Severity: Major
    Found in src/memqueue.js - About 2 hrs to fix

      Function MemQueue has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function MemQueue(key, locations, options){
          var self = this;
          if (key === undefined) {
              throw new Error("Must set queue key");
          }
      Severity: Minor
      Found in src/memqueue.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language