etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

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

    cleanData: function( elems, /* internal */ acceptData ) {
        var elem, type, id, data,
            i = 0,
            internalKey = jQuery.expando,
            cache = jQuery.cache,
Severity: Minor
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

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

        style: function( elem, name, value, extra ) {
            // Don't set styles on text and comment nodes
            if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                return;
            }
    Severity: Minor
    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

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

          res.endpoint.render = function(data) {
            var callback = req.endpoint.params && req.endpoint.params.callback;
      
            res.charset = 'utf-8'
            res.format({
      Severity: Minor
      Found in test-set/express-endpoint-master/lib/middleware/render.js - About 1 hr to fix

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

            data: function( key, value ) {
                var attrs, name,
                    elem = this[0],
                    i = 0,
                    data = null;
        Severity: Minor
        Found in test-set/gifsockets-server-master/public/js/jquery.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/index-flx.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 _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 startPlaceholder has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function startPlaceholder(next, signature) {
                  return b.functionExpression(b.identifier("placeholder"), [
                    ],
                    b.blockStatement([
                      b.returnStatement(
                Severity: Minor
                Found in prototypes/shreder/lib/builders.js - About 1 hr to fix

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

                    this.addplot = function(plot) {
                      if (plot._label) {
                        this._legend.push(plot._label);
                      }
                      this._plots.push(plot);
                  Severity: Major
                  Found in prototypes/fluxions/bench/distribution/pgfplots.js and 1 other location - About 1 hr to fix
                  prototypes/fluxions/bench/diffInstructions/pgfplots.js on lines 32..37

                  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 62.

                  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

                    pack.radius = function(_) {
                      if (!arguments.length) return radius;
                      radius = _ == null || typeof _ === "function" ? _ : +_;
                      return pack;
                    };
                  Severity: Major
                  Found in lib/graph-printer/pack-layout.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 6750..6754

                  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 62.

                  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

                    this.addplot = function(plot) {
                      if (plot._label) {
                        this._legend.push(plot._label);
                      }
                      this._plots.push(plot);
                  Severity: Major
                  Found in prototypes/fluxions/bench/diffInstructions/pgfplots.js and 1 other location - About 1 hr to fix
                  prototypes/fluxions/bench/distribution/pgfplots.js on lines 46..51

                  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 62.

                  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

                      pack.radius = function(_) {
                        if (!arguments.length) return radius;
                        radius = _ == null || typeof _ === "function" ? _ : +_;
                        return pack;
                      };
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/pack-layout.js on lines 51..55

                  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 62.

                  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

                      graticule.minorStep = function(_) {
                        if (!arguments.length) return [ dx, dy ];
                        dx = +_[0], dy = +_[1];
                        return graticule;
                      };
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 4444..4448

                  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 62.

                  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

                          if (x) {
                            range = d3_scaleRange(x);
                            backgroundUpdate.attr("x", range[0]).attr("width", range[1] - range[0]);
                            redrawX(gUpdate);
                          }
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 8793..8797

                  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 62.

                  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

                            transport.sendMail({
                              from: config.email.from,
                              to: user.email,
                              subject: config.app.name + ': Please Verify Your Account',
                              html: html,
                  Severity: Major
                  Found in test-set/express-couchUser-master/index.js and 1 other location - About 1 hr to fix
                  test-set/express-couchUser-master/index.js on lines 242..247

                  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 62.

                  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

                          if (y) {
                            range = d3_scaleRange(y);
                            backgroundUpdate.attr("y", range[0]).attr("height", range[1] - range[0]);
                            redrawY(gUpdate);
                          }
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 8788..8792

                  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 62.

                  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

                      graticule.majorStep = function(_) {
                        if (!arguments.length) return [ DX, DY ];
                        DX = +_[0], DY = +_[1];
                        return graticule;
                      };
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
                  lib/graph-printer/old/bower_components/d3/d3.js on lines 4449..4453

                  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 62.

                  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

                        transport.sendMail({
                          from: config.email.from,
                          to: user.email,
                          subject: config.app.name + ': Reset Password Request',
                          html: html,
                  Severity: Major
                  Found in test-set/express-couchUser-master/index.js and 1 other location - About 1 hr to fix
                  test-set/express-couchUser-master/index.js on lines 556..561

                  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 62.

                  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

                  Consider simplifying this complex logical expression.
                  Open

                    if ((sharing >= 2 && modifiers === 0 && !inSource && definedByRoot)
                    // + 2 fluxions, the root fluxion doesn't modify the variable : Problem #4
                    ||  (sharing >= 2 && modifiers === 1 && sourcePristine && !inSource)) {
                      return 'scope';
                    }
                  Severity: Critical
                  Found in lib/linker/core.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                                            } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                                diff = cache[1];
                    
                                            // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                            } else {
                    Severity: Critical
                    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language