etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

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

Timbit.prototype.test = function(host, alltests, callback) {
  
  // generate dynamic list of test urls
  var tests = this.generateTests(alltests);
  
Severity: Minor
Found in test-set/timbits-master/lib/timbits.js - About 1 hr to fix

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

    function select( selector, context, results, seed ) {
        var i, tokens, token, type, find,
            match = tokenize( selector );
    
        if ( !seed ) {
    Severity: Minor
    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

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

      function register(name, fn, scope) {
      
        function _register(name, fn, scope) { 
          var _scope = b.objectExpression([]);
          if (scope) {
      Severity: Minor
      Found in lib/js-printer/builders.js - About 1 hr to fix

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

          , slide: function (type, next) {
              var $active = this.$element.find('.item.active')
                , $next = next || $active[type]()
                , isCycling = this.interval
                , direction = type == 'next' ? 'left' : 'right'
        Severity: Minor
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js - About 1 hr to fix

          Function _createOverview has 45 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/index-flx.js - About 1 hr to fix

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

            sigma.canvas.edges.toContext = function(e, s, t, ctx, settings) {
              var p = settings('prefix') || '',
                  edgeColor = settings('edgeColor'),
                  defaultNodeColor = settings('defaultNodeColor'),
                  defaultEdgeColor = settings('defaultEdgeColor'),
            Severity: Minor
            Found in prototypes/express/src/console/script.js - About 1 hr to fix

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

              function _maper() {
              
                function map(n, it) {
              
                  if (it.enter)
              Severity: Minor
              Found in prototypes/shreder/lib/traverse.js - About 1 hr to fix

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

                      if (dx < 0) {
                        if (r < t0) return;
                        if (r < t1) t1 = r;
                      } else if (dx > 0) {
                        if (r > t1) return;
                Severity: Major
                Found in lib/graph-printer/old/bower_components/d3/d3.js and 3 other locations - About 1 hr to fix
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3527..3533
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3537..3543
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3547..3553

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

                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

                      if (dx < 0) {
                        if (r > t1) return;
                        if (r > t0) t0 = r;
                      } else if (dx > 0) {
                        if (r < t0) return;
                Severity: Major
                Found in lib/graph-printer/old/bower_components/d3/d3.js and 3 other locations - About 1 hr to fix
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3517..3523
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3537..3543
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3547..3553

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

                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

                      if (dy < 0) {
                        if (r < t0) return;
                        if (r < t1) t1 = r;
                      } else if (dy > 0) {
                        if (r > t1) return;
                Severity: Major
                Found in lib/graph-printer/old/bower_components/d3/d3.js and 3 other locations - About 1 hr to fix
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3517..3523
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3527..3533
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3547..3553

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

                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

                      if (dy < 0) {
                        if (r > t1) return;
                        if (r > t0) t0 = r;
                      } else if (dy > 0) {
                        if (r < t0) return;
                Severity: Major
                Found in lib/graph-printer/old/bower_components/d3/d3.js and 3 other locations - About 1 hr to fix
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3517..3523
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3527..3533
                lib/graph-printer/old/bower_components/d3/d3.js on lines 3537..3543

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

                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

                                event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
                Severity: Major
                Found in test-set/gifsockets-server-master/public/js/jquery.js and 1 other location - About 1 hr to fix
                test-set/gifsockets-server-master/public/js/jquery.js on lines 3219..3219

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

                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

                      , 'js': function() {
                          if (callback) {
                            res.send(callback+"("+JSON.stringify(data)+")");
                          } else {
                            res.send(JSON.stringify(data));
                Severity: Major
                Found in test-set/express-endpoint-master/lib/middleware/render.js and 1 other location - About 1 hr to fix
                test-set/express-endpoint-master/lib/middleware/render.js on lines 42..48

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

                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

                                event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
                Severity: Major
                Found in test-set/gifsockets-server-master/public/js/jquery.js and 1 other location - About 1 hr to fix
                test-set/gifsockets-server-master/public/js/jquery.js on lines 3218..3218

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

                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

                        'json': function() {
                          if (callback) {
                            res.send(callback+"("+JSON.stringify(data)+")");
                          } else {
                            res.send(JSON.stringify(data));
                Severity: Major
                Found in test-set/express-endpoint-master/lib/middleware/render.js and 1 other location - About 1 hr to fix
                test-set/express-endpoint-master/lib/middleware/render.js on lines 49..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 71.

                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

                Function histogram has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  d3.layout.histogram = function() {
                    var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;
                    function histogram(data, i) {
                      var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;
                      while (++i < m) {
                Severity: Minor
                Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                  Function __resolve has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function __resolve(tree, forest) {
                  
                    console.log(">> in ", tree.name);
                  
                    for (var i = 0; i < tree.dep.length; i++) {
                  Severity: Minor
                  Found in prototypes/blender.old/lib/resolution.js - About 1 hr to fix

                    Function toNode has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    sigma.canvas.edges.toNode = function(e, s, t, ctx, settings) {
                      var p = settings('prefix') || '',
                          edgeColor = settings('edgeColor'),
                          defaultNodeColor = settings('defaultNodeColor'),
                          defaultEdgeColor = settings('defaultEdgeColor'),
                    Severity: Minor
                    Found in prototypes/express/src/console/script.js - About 1 hr to fix

                      Function initProgram has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          initProgram: function(gl) {
                            var vertexShader,
                                fragmentShader,
                                program;
                      
                      

                        Function resampleLineTo has 14 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) {
                        Severity: Major
                        Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language