etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    finish: function( type ) {
        if ( type !== false ) {
            type = type || "fx";
        }
        return this.each(function() {
Severity: Minor
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

    Function _distributeChange has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _distributeChange: function(doc, evName, isInResult) {
          var self = this;
          var actuallySend = function() {
            for (var socketId in self.listeners) {
              var listener = self.listeners[socketId];
    Severity: Minor
    Found in test-set/Moonridge-master/mr-rpc-methods.js - About 1 hr to fix

      Function _register has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function _register(msg) {
        s.graph.addNode({
          id: msg.name,
          size: nodeRadius,
          x: Math.random(),
      Severity: Minor
      Found in prototypes/express/src/console/script.js - About 1 hr to fix

        Function accessControlQueryModifier has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function accessControlQueryModifier(clQuery, schema, userPL, op) { // guards the properties that are marked with higher required permissions for reading
            var pathPs = schema.pathPermissions;
            var select;
            if (clQuery.select) {
              select = clQuery.select[0];
        Severity: Minor
        Found in test-set/Moonridge-master/mr-rpc-methods.js - About 1 hr to fix

          Function timestamp has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

            , timestamp: function(name) {
                return function(vals, cb) {
                  try {
                    var mapped = vals.map(function(val) {
                      if (val.match(/^-?[0-9]+(\.[0-9]+)?$/)) {
          Severity: Minor
          Found in test-set/express-endpoint-master/lib/rules.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 enter has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

            enter: function (n, p, c) {
          
              // TODO if the function is used for more than the async call, we NEED to run the mapping concurrently for two fluxion : the old, and the new.
          
              if (n.rupturePoint) {
          Severity: Minor
          Found in lib/mapper/iterator.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 end has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

          Context.prototype.end = function() {
          
            function registerDependency(variable, flx, ref){
              if (!flx.dependencies[variable.name]) {
                flx.dependencies[variable.name] = {
          Severity: Minor
          Found in lib/mapper/context.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 _reducer has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

          function _reducer() {
          
            function reduce(n, it) {
          
              function _agg(n) {
          Severity: Minor
          Found in prototypes/shreder/lib/traverse.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 d3_geom_voronoi has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function d3_geom_voronoi(sites, bbox) {
              var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;
              d3_geom_voronoiEdges = [];
              d3_geom_voronoiCells = new Array(sites.length);
              d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();
          Severity: Minor
          Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

            Function brushmove has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  function brushmove() {
                    var point = d3.mouse(target), moved = false;
                    if (offset) {
                      point[0] += offset[0];
                      point[1] += offset[1];
            Severity: Minor
            Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

              Function d3_geo_pointInPolygon has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function d3_geo_pointInPolygon(point, polygon) {
                  var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
                  d3_geo_areaRingSum.reset();
                  for (var i = 0, n = polygon.length; i < n; ++i) {
                    var ring = polygon[i], m = ring.length;
              Severity: Minor
              Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        setup: function() {
                
                            if ( rformElems.test( this.nodeName ) ) {
                                // IE doesn't fire change on a check/radio until blur; trigger it on click
                                // after a propertychange. Eat the blur-change in special.change.handle.
                Severity: Minor
                Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                  Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function propFilter( props, specialEasing ) {
                      var value, name, index, easing, hooks;
                  
                      // camelCase, specialEasing and expand cssHook pass
                      for ( index in props ) {
                  Severity: Minor
                  Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                    Function bodyParser has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var bodyParser = function () {
                        var getRawBody = require('raw-body');
                        module.exports = function getRawBodyFn(limit) {
                          return function saveBody(req, res, next) {
                            getRawBody(/*msg._sign.*/req, {
                    Severity: Minor
                    Found in test-set/gifsockets-server-master/server/app.js - About 1 hr to fix

                      Function bind has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        dispatcher.prototype.bind = function(events, handler) {
                          var i,
                              event,
                              eArray;
                      
                      

                        Function unbind has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          dispatcher.prototype.unbind = function(events, handler) {
                            var i,
                                j,
                                a,
                                event,

                          Function postPlaceholder has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function postPlaceholder(next, signature) {
                          
                            return b.callExpression(
                                    b.memberExpression(
                                      b.identifier("flx"),
                          Severity: Minor
                          Found in prototypes/shreder/lib/builders.js - About 1 hr to fix

                            Function graph has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function graph(type, options) {
                              this._options = options;
                              this._output_pre = _bgraph + "\\begin{" + type + "}";
                              this._output_post = "\\end{" + type + "}\n"+ _egraph;
                              this._plots = [];
                            Severity: Minor
                            Found in prototypes/fluxions/bench/distribution/pgfplots.js - About 1 hr to fix

                              Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  off: function( types, selector, fn ) {
                                      var handleObj, type;
                                      if ( types && types.preventDefault && types.handleObj ) {
                                          // ( event )  dispatched jQuery.Event
                                          handleObj = types.handleObj;
                              Severity: Minor
                              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                                Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                jQuery.fn.offset = function( options ) {
                                    if ( arguments.length ) {
                                        return options === undefined ?
                                            this :
                                            this.each(function( i ) {
                                Severity: Minor
                                Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language