etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

File d3.js has 9223 lines of code (exceeds 250 allowed). Consider refactoring.
Open

!function() {
  var d3 = {
    version: "3.4.11"
  };
  if (!Date.now) Date.now = function() {
Severity: Major
Found in lib/graph-printer/old/bower_components/d3/d3.js - About 3 wks to fix

    File jquery.js has 6570 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v1.9.1
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 wks to fix

      File bootstrap.js has 1517 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* ===================================================
       * bootstrap-transition.js v2.3.2
       * http://getbootstrap.com/2.3.2/javascript.html#transitions
       * ===================================================
       * Copyright 2013 Twitter, Inc.
      Severity: Major
      Found in test-set/gifsockets-server-master/public/js/bootstrap.js - About 4 days to fix

        Function ForceAtlas2 has 630 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          forceatlas2.ForceAtlas2 = function(graph, options) {
            var self = this;
            this.graph = graph;
        
            this.p = sigma.utils.extend(

          Function expose has a Cognitive Complexity of 153 (exceeds 5 allowed). Consider refactoring.
          Open

          var expose = function(model, schema, opts) {
          
            var liveQueries = {};
            var modelName = model.modelName;
          
          
          Severity: Minor
          Found in test-set/Moonridge-master/mr-rpc-methods.js - About 3 days 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 expose has 505 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var expose = function(model, schema, opts) {
          
            var liveQueries = {};
            var modelName = model.modelName;
          
          
          Severity: Major
          Found in test-set/Moonridge-master/mr-rpc-methods.js - About 2 days to fix

            File index-flx.js has 887 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            var flx = require('flx');
            
            
            (function () {
              var app, bodyparser, e, express, extend, hbs, ov, ovOptions, overview, redis, rediscli, _defaults;
            Severity: Major
            Found in test-set/redis_key_overview-master/index-flx.js - About 2 days to fix

              Function exports has 404 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              module.exports = function(config) {
                var app = express(),
                  safeUserFields = config.safeUserFields ? config.safeUserFields : "name email roles",
                  db;
              
              
              Severity: Major
              Found in test-set/express-couchUser-master/index.js - About 2 days to fix

                File sigma.layout.forceAtlas2.js has 805 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * Mathieu Jacomy @ Sciences Po Médialab & WebAtlas
                 * (requires sigma.js to be loaded)
                 */
                ;(function(undefined) {

                  File keyoverview.js has 755 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  (function() {
                    var Overview, StringDecoder, eventemitter, exec, fs, hbs, sd, _,
                      __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
                      __hasProp = {}.hasOwnProperty,
                      __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
                  Severity: Major
                  Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 day to fix

                    Function touch has 285 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      sigma.captors.touch = function(target, camera, settings) {
                        var _self = this,
                            _target = target,
                            _camera = camera,
                            _settings = settings,

                      Function brush has 277 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        d3.svg.brush = function() {
                          var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
                          function brush(g) {
                            g.each(function() {
                              var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
                      Severity: Major
                      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 day to fix

                        Function atomicGo has 255 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            this.atomicGo = function() {
                              var i,
                                  n,
                                  e,
                                  l,

                          Function zoom has 246 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            d3.behavior.zoom = function() {
                              var view = {
                                x: 0,
                                y: 0,
                                k: 1
                          Severity: Major
                          Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 day to fix

                            Function ajax has 241 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                ajax: function( url, options ) {
                            
                                    // If url is an object, simulate pre-1.5 signature
                                    if ( typeof url === "object" ) {
                                        options = url;
                            Severity: Major
                            Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 day to fix

                              Function reduce has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function reduce(tree) {
                              
                                // _down = {};
                                // _up = {}
                              
                              
                              Severity: Minor
                              Found in prototypes/blender.old/lib/reduction.js - About 1 day 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 setDocument has 230 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              setDocument = Sizzle.setDocument = function( node ) {
                                  var doc = node ? node.ownerDocument || node : preferredDoc;
                              
                                  // If no document and documentElement is available, return
                                  if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
                              Severity: Major
                              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 day to fix

                                Function mouse has 224 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  sigma.captors.mouse = function(target, camera, settings) {
                                    var _self = this,
                                        _target = target,
                                        _camera = camera,
                                        _settings = settings,

                                  Function d3_locale_timeFormat has 213 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function d3_locale_timeFormat(locale) {
                                      var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
                                      function d3_time_format(template) {
                                        var n = template.length;
                                        function format(date) {
                                  Severity: Major
                                  Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 day to fix

                                    File mr-rpc-methods.js has 519 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    var _ = require('lodash');
                                    var Promise = require('bluebird');
                                    var eventNames = require('./schema-events').eventNames;
                                    var queryBuilder = require('./query-builder');
                                    var populateWithClientQuery = require('./utils/populate-doc-util');
                                    Severity: Major
                                    Found in test-set/Moonridge-master/mr-rpc-methods.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language