etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

Function _handleLeave has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _handleLeave(e) {
      if (_settings('touchEnabled')) {
        _downTouches = e.touches;
        var inertiaRatio = _settings('touchInertiaRatio');

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

      function d3_geo_clipAntimeridianLine(listener) {
        var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;
        return {
          lineStart: function() {
            listener.lineStart();
    Severity: Minor
    Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

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

      function showHide( elements, show ) {
          var display, elem, hidden,
              values = [],
              index = 0,
              length = elements.length;
      Severity: Minor
      Found in test-set/gifsockets-server-master/public/js/jquery.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 _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/index-flx.js - About 1 hr to fix

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

            function post(msg) {
            
              function postMsg(type, body, ctx) {
                  var msg = MSG[type].flx.call(ctx, body);
            
            
            Severity: Minor
            Found in prototypes/express/src/old/fluxion2.js - About 1 hr to fix

              Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  when: function( subordinate /* , ..., subordinateN */ ) {
                      var i = 0,
                          resolveValues = core_slice.call( arguments ),
                          length = resolveValues.length,
              
              
              Severity: Minor
              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                Function isLowerSorted has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var isLowerSorted = function isLowerSorted(first, second) {
                        var i = 0;
                        var prop = sortBy[0];
                        var firstVal;
                        var secondVal;
                Severity: Minor
                Found in test-set/Moonridge-master/utils/indexInSortedArray.js - About 1 hr to fix

                  Function _upHandler has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _upHandler(e) {
                        if (_settings('mouseEnabled') && _isMouseDown) {
                          _isMouseDown = false;
                          if (_movingTimeoutId)
                            clearTimeout(_movingTimeoutId);

                    Function configurable has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      var configurable = function() {
                        var i,
                            l,
                            data = {},
                            datas = Array.prototype.slice.call(arguments, 0);

                      Function drawHovers has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        sigma.misc.drawHovers = function(prefix) {
                          var self = this,
                              hoveredNodes = {};
                      
                          this.bind('overNodes', function(event) {

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

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

                          Function typeOf has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                          Open

                          TriggersDict.prototype.typeOf = function(ids) {
                          
                            /* TODO heavy redesign needed here
                             * Triggers won't do the job.
                             * the start / post difference comes from the routes, or the method, not the trigger.
                          Severity: Minor
                          Found in lib/analyzer/triggers.js - About 1 hr 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

                          Function render has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                          Open

                          Timbit.prototype.render = function(req, res, context) {
                          
                            // add caching headers
                            res.setHeader("Cache-Control", "max-age=" + context.maxAge);
                            res.setHeader("Edge-Control", "!no-store, max-age=" + context.maxAge);
                          Severity: Minor
                          Found in test-set/timbits-master/lib/timbits.js - About 1 hr 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

                          Function toContext has a Cognitive Complexity of 12 (exceeds 5 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

                          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

                          Function _resolve has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function _resolve(tree, forest) {
                            var clean = tree.deps.reduce(function(clean, dep) { var _tree = forest[dep.id];
                              // If there is a scope with this id : it needs to be resolved    
                              if (_tree) {
                                if (!_types[dep.type])
                          Severity: Minor
                          Found in prototypes/blender/lib/resolution.js - About 1 hr 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

                          Function post has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function post(msg) {
                          
                            function postMsg(msg) {
                              if (!msg)
                                return false;
                          Severity: Minor
                          Found in prototypes/fluxions/lib/flx_chain.js - About 1 hr 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

                          Function partition has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            d3.layout.partition = function() {
                              var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
                              function position(node, x, dx, dy) {
                                var children = node.children;
                                node.x = x;
                          Severity: Minor
                          Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                            Function dragstart has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function dragstart(id, position, subject, move, end) {
                                  return function() {
                                    var that = this, target = d3.event.target, parent = that.parentNode, dispatch = event.of(that, arguments), dragged = 0, dragId = id(), dragName = ".drag" + (dragId == null ? "" : "-" + dragId), dragOffset, dragSubject = d3.select(subject()).on(move + dragName, moved).on(end + dragName, ended), dragRestore = d3_event_dragSuppress(), position0 = position(parent, dragId);
                                    if (origin) {
                                      dragOffset = origin.apply(that, arguments);
                            Severity: Minor
                            Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                              Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  dispatch: function( event ) {
                              
                                      // Make a writable jQuery.Event from the native event object
                                      event = jQuery.event.fix( event );
                              
                              
                              Severity: Minor
                              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language