etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

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

        "CHILD": function( type, what, argument, first, last ) {
            var simple = type.slice( 0, 3 ) !== "nth",
                forward = type.slice( -4 ) !== "last",
                ofType = what === "of-type";

Severity: Major
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

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

        function setupDrop(dropbox, opts) {
    
            if (!FileReaderJS.enabled) {
                return;
            }
    Severity: Major
    Found in test-set/gifsockets-server-master/public/js/filereader.js - About 2 hrs to fix

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

        function _getStats(v1, v2) {
          var a,
              k,
              i,
              l,
      Severity: Major
      Found in prototypes/express/src/console/sigma/src/conrad.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                                if ( forward && useCache ) {
                                    // Seek `elem` from a previously-cached index
                                    outerCache = parent[ expando ] || (parent[ expando ] = {});
                                    cache = outerCache[ type ] || [];
                                    nodeIndex = cache[0] === dirruns && cache[1];
        Severity: Critical
        Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

          Function tick has 58 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              force.tick = function() {
                if ((alpha *= .99) < .005) {
                  event.end({
                    type: "end",
                    alpha: alpha = 0
          Severity: Major
          Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

            Function init has 58 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                init: function( selector, context, rootjQuery ) {
                    var match, elem;
            
                    // HANDLE: $(""), $(null), $(undefined), $(false)
                    if ( !selector ) {
            Severity: Major
            Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

              Function bootstrap has 58 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function bootstrap(app, iop) {
                      var io;
                      if (!iop) {
                          var server = app.listen(app.get('port'));
              
              
              Severity: Major
              Found in test-set/Moonridge-master/main.js - About 2 hrs to fix

                Function build has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function build(tree) {
                
                
                  _down = {};
                  _up = {};
                Severity: Major
                Found in prototypes/blender.old/lib/build.js - About 2 hrs to fix

                  Function addRenderer has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    sigma.prototype.addRenderer = function(options) {
                      var id,
                          fn,
                          camera,
                          renderer,
                  Severity: Major
                  Found in prototypes/express/src/console/sigma/src/sigma.core.js - About 2 hrs to fix

                    Function extractDown has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function extractDown(tree, id) {
                    
                      var _n = {};
                      var __n = {};
                      var _d = {};
                    Severity: Major
                    Found in prototypes/blender/lib/extract.js - About 2 hrs to fix

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

                        sigma.utils.extend = function() {
                          var i,
                              k,
                              res = {},
                              l = arguments.length;
                      prototypes/express/src/console/sigma/src/conrad.js on lines 875..886

                      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

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

                        function __extend() {
                          var i,
                              k,
                              res = {},
                              l = arguments.length;
                      Severity: Major
                      Found in prototypes/express/src/console/sigma/src/conrad.js and 1 other location - About 2 hrs to fix
                      prototypes/express/src/console/sigma/src/utils/sigma.utils.js on lines 45..56

                      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 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/index-flx.js and 1 other location - About 2 hrs to fix
                      test-set/redis_key_overview-master/modules/keyoverview.js on lines 473..479

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

                      Function d3_geo_clipPolygon has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
                          var subject = [], clip = [];
                          segments.forEach(function(segment) {
                            if ((n = segment.length - 1) <= 0) return;
                            var n, p0 = segment[0], p1 = segment[n];
                      Severity: Major
                      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

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

                            render: function(gl, program, data, params) {
                              var buffer;
                        
                              // Define attributes:
                              var positionLocation =

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

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

                            Function MRModel has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                            Open

                            module.exports = function MRModel(name, schema, opts) {
                                opts = opts || {};
                            
                                /**
                                 * is overriden for liveQueries
                            Severity: Minor
                            Found in test-set/Moonridge-master/mr-server-model.js - About 2 hrs to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

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

                                  if (_settings('mouseEnabled'))
                                    _self.dispatchEvent('mousemove', {
                                      x: sigma.utils.getX(e) - e.target.width / 2,
                                      y: sigma.utils.getY(e) - e.target.height / 2
                                    });
                            prototypes/express/src/console/sigma/src/captors/sigma.captors.mouse.js on lines 221..225

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

                            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

                                    } else {
                                      if (logAttr) {
                                        if (distributedAttr) {
                                          return new this.logAttraction_degreeDistributed(c);
                                        } else {
                            prototypes/express/src/console/sigma/plugins/sigma.layout.forceAtlas2/sigma.layout.forceAtlas2.js on lines 431..445

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

                            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

                            Severity
                            Category
                            Status
                            Source
                            Language