etnbrd/flx-compiler

View on GitHub
test-set/redis_key_overview-master/modules/keyoverview.js

Summary

Maintainability
F
1 mo
Test Coverage

File keyoverview.js has 755 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function() {
  var Overview, StringDecoder, eventemitter, exec, fs, hbs, sd, _,
    __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
    __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Severity: Major
Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 day to fix

    Function generateRoutes has 124 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Overview.prototype.generateRoutes = function() {
          this.express.get('/generate', (function(_this) {
            return function(req, res) {
              var _ref;
              if ((_ref = _this.initStatus) != null ? _ref.initializing : void 0) {
    Severity: Major
    Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 4 hrs to fix

      Function generateViews has 82 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          Overview.prototype.generateViews = function() {
            var _conReading, _keystream;
            _keystream = fs.createReadStream(this.options.keyfilename);
            this.emit('initStatusUpdate', "Started reading the keys from local file, requesting information about the key from redis and packing these information.");
            _conReading = (function(_this) {
      Severity: Major
      Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 3 hrs to fix

        Function initInitVars has 69 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Overview.prototype.initInitVars = function() {
              this._parseCSV = {
                remainingBytes: [],
                nextCharCouldBeEscaped: false,
                value: false,
        Severity: Major
        Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 2 hrs to fix

          Function initialize has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              Overview.prototype.initialize = function() {
                this.on("initStatusUpdate", (function(_this) {
                  return function(statusmsg) {
                    _this.initStatus.status.push({
                      "code": 200,
          Severity: Major
          Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 2 hrs to fix

            Function _getTopMembers has 48 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Overview.prototype._getTopMembers = function(collection, type, last) {
                  var _element, _foundCount, _foundSize, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _topcountkey, _topsizekey;
                  if (last) {
                    this._createOverview();
                    return;
            Severity: Minor
            Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

              Function _createOverview has 48 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Overview.prototype._createOverview = function() {
                    var type, val, _ref;
                    this._templateDataParsed = this._parseDataForTemplate();
                    _ref = this._typePlurals;
                    for (type in _ref) {
              Severity: Minor
              Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

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

                    Overview.prototype._getKeySizeAndType = function(keys, last) {
                      var _collection, _commands, _i, _key, _len;
                      if (last) {
                        if (this._totalKeyAmount <= this._timesRequested * this.options.multiLength) {
                          this.lastKeySizeAndTypeRequest = false;
                Severity: Minor
                Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

                  Function _getMemberCount has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Overview.prototype._getMemberCount = function(keys, last) {
                        var _collection, _command, _commands, _i, _key, _len;
                        if (last) {
                          if (this.memberRequests.remaining === 0) {
                            this._getTopMembers(null, null, true);
                  Severity: Minor
                  Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

                    Function _diffKeysAndSummarize has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        Overview.prototype._diffKeysAndSummarize = function(collection, last) {
                          var k, v, _element, _i, _len, _ref;
                          if (last) {
                            this.emit('initStatusUpdate', "Finished getting the necessary key information from redis.");
                            this._createKeyOverview();
                    Severity: Minor
                    Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

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

                          Overview.prototype._parseDataForTemplate = function() {
                            var i, k, v, _i, _ref, _ref1, _templateDataParsed;
                            _templateDataParsed = {};
                            _ref = this._templateData;
                            for (k in _ref) {
                      Severity: Minor
                      Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

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

                            Overview.prototype._createKeyOverview = function() {
                              var _finCreating, _keytemplatedata;
                              this.emit('initStatusUpdate', "Starting to parse information into html pages.");
                              _finCreating = (function(_this) {
                                return function() {
                        Severity: Minor
                        Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

                          Function Overview has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function Overview(express, redis, options) {
                                this.express = express;
                                this.redis = redis;
                                this.options = options;
                                this._formatByte = __bind(this._formatByte, this);
                          Severity: Minor
                          Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

                            Avoid deeply nested control flow statements.
                            Open

                                            if (_this._parseCSV.nextCharactersAreUnicode === 1) {
                                              _this._parseCSV.firstPartOfHex = sd.write(_byteBuffer);
                                            } else {
                                              _realByteString = _this._parseCSV.firstPartOfHex + sd.write(_byteBuffer);
                                              _realByte = parseInt(_realByteString, 16);
                            Severity: Major
                            Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                if (_byte === 0x78) {
                                                  _this._parseCSV.nextCharactersAreUnicode = 2;
                                                } else {
                                                  _foundEscapedChar = false;
                                                  _ref = _this._escapedCharacters;
                              Severity: Major
                              Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                              } else if (_byte === 0x5C) {
                                                _this._parseCSV.nextCharCouldBeEscaped = true;
                                              } else if (_byte === 0x22) {
                                                _key = sd.write(new Buffer(_this._parseCSV.remainingBytes));
                                                _this._parseCSV.remainingBytes = [];
                                Severity: Major
                                Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 45 mins to fix

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype.generateViews = function() {
                                        var _conReading, _keystream;
                                        _keystream = fs.createReadStream(this.options.keyfilename);
                                        this.emit('initStatusUpdate', "Started reading the keys from local file, requesting information about the key from redis and packing these information.");
                                        _conReading = (function(_this) {
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 4 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 349..432

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 830.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._parseDataForTemplate = function() {
                                        var i, k, v, _i, _ref, _ref1, _templateDataParsed;
                                        _templateDataParsed = {};
                                        _ref = this._templateData;
                                        for (k in _ref) {
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 4 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 733..768

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 745.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._getTopMembers = function(collection, type, last) {
                                        var _element, _foundCount, _foundSize, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _topcountkey, _topsizekey;
                                        if (last) {
                                          this._createOverview();
                                          return;
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 4 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 596..645

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 705.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._getKeySizeAndType = function(keys, last) {
                                        var _collection, _commands, _i, _key, _len;
                                        if (last) {
                                          if (this._totalKeyAmount <= this._timesRequested * this.options.multiLength) {
                                            this.lastKeySizeAndTypeRequest = false;
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 3 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 449..504

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 575.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._diffKeysAndSummarize = function(collection, last) {
                                        var k, v, _element, _i, _len, _ref;
                                        if (last) {
                                          this.emit('initStatusUpdate', "Finished getting the necessary key information from redis.");
                                          this._createKeyOverview();
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 3 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 512..550

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 521.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._getMemberCount = function(keys, last) {
                                        var _collection, _command, _commands, _i, _key, _len;
                                        if (last) {
                                          if (this.memberRequests.remaining === 0) {
                                            this._getTopMembers(null, null, true);
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 551..595

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 509.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._parseKeysForTemplate = function() {
                                        var types, _obj, _ref, _typ;
                                        types = {
                                          "types": [],
                                          topcount: this.options.topcount
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 769..791

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 453.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      function Overview(express, redis, options) {
                                        this.express = express;
                                        this.redis = redis;
                                        this.options = options;
                                        this._formatByte = __bind(this._formatByte, this);
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 72..103

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 424.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype.initInitVars = function() {
                                        this._parseCSV = {
                                          remainingBytes: [],
                                          nextCharCouldBeEscaped: false,
                                          value: false,
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 168..238

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 396.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype.initialize = function() {
                                        this.on("initStatusUpdate", (function(_this) {
                                          return function(statusmsg) {
                                            _this.initStatus.status.push({
                                              "code": 200,
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 days to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 104..167

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 389.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                        this.express.get('/initstatuspercent', (function(_this) {
                                          return function(req, res) {
                                            var _sendStatusPercent, _timeobj;
                                            if (_this.initStatus.percent["new"]) {
                                              _this.initStatus.percent["new"] = false;
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 1 day to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 306..333

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 296.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                        this.express.get('/initstatus', (function(_this) {
                                          return function(req, res) {
                                            var _sendStatus, _status, _timeobj;
                                            if (_this.initStatus.status.length > 0) {
                                              _status = _this.initStatus.status.shift();
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 1 day to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 281..305

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 258.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._packKeys = function(key, last) {
                                        if (last) {
                                          if (this._multiKeys.key.length > 0) {
                                            this._getKeySizeAndType(this._multiKeys.key, false);
                                          }
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 1 day to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 433..448

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 198.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    var Overview, StringDecoder, eventemitter, exec, fs, hbs, sd, _,
                                      __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
                                      __hasProp = {}.hasOwnProperty,
                                      __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 7 hrs to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 46..62

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 187.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._formatByte = function(bytes) {
                                        var i, k, sizes;
                                        if (bytes === 0) {
                                          return '0 Byte';
                                        }
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 5 hrs to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 795..814

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 141.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                        this.express.get('/:type', (function(_this) {
                                          return function(req, res, next) {
                                            return res.sendfile("./static/html/" + req.params.type + "overview.html", function(error) {
                                              if (error != null) {
                                                next();
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 hrs to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 334..342

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 88.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      Overview.prototype._catSize = function(data) {
                                        var startindex, term;
                                        term = "serializedlength";
                                        startindex = data.indexOf(term);
                                        startindex += term.length + 1;
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 2 hrs to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 505..511

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 81.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                        this.express.get('/init', (function(_this) {
                                          return function(req, res) {
                                            res.sendfile("./static/html/init.html", function(error) {
                                              if (error != null) {
                                                res.send(500, "Fatal Error: Init file is missing!");
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 3 other locations - About 2 hrs to fix
                                  test-set/redis_key_overview-master/modules/keyoverview.js on lines 243..251
                                  test-set/redis_key_overview-master/index-flx.js on lines 263..271
                                  test-set/redis_key_overview-master/index-flx.js on lines 272..280

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 77.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                        this.express.get('/', (function(_this) {
                                          return function(req, res) {
                                            res.sendfile("./static/html/keyoverview.html", function(error) {
                                              if (error != null) {
                                                res.redirect(307, "/init");
                                  Severity: Major
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 3 other locations - About 2 hrs to fix
                                  test-set/redis_key_overview-master/modules/keyoverview.js on lines 234..242
                                  test-set/redis_key_overview-master/index-flx.js on lines 263..271
                                  test-set/redis_key_overview-master/index-flx.js on lines 272..280

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 77.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                        _finCreating = (function(_this) {
                                          return function() {
                                            console.log("key file ready");
                                            _this.initStatus.initializing = false;
                                          };
                                  Severity: Minor
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 45 mins to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 699..704

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 50.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                        this.express.all('*', (function(_this) {
                                          return function(req, res) {
                                            res.send(404, "File not found");
                                          };
                                        })(this));
                                  Severity: Minor
                                  Found in test-set/redis_key_overview-master/modules/keyoverview.js and 1 other location - About 40 mins to fix
                                  test-set/redis_key_overview-master/index-flx.js on lines 343..347

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 48.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  There are no issues that match your filters.

                                  Category
                                  Status