etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

Function _wheelHandler has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _wheelHandler(e) {
      var pos,
          count,
          ratio,
          newRatio;

    Function fetch has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function fetch(gexf_url, callback) {
        var xhr = (function() {
          if (window.XMLHttpRequest)
            return new XMLHttpRequest();
    
    

      Function start has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          force.start = function() {
            var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
            for (i = 0; i < n; ++i) {
              (o = nodes[i]).index = i;
              o.weight = 0;
      Severity: Minor
      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

        Function print has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function print(ctx, skipRoot) {
        
          var i,
              flx,
              _flx,
        Severity: Minor
        Found in lib/js-printer/index.js - About 1 hr to fix

          Function matcherFromTokens has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function matcherFromTokens( tokens ) {
              var checkContext, matcher, j,
                  len = tokens.length,
                  leadingRelative = Expr.relative[ tokens[0].type ],
                  implicitRelative = leadingRelative || Expr.relative[" "],
          Severity: Minor
          Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

            Function Integrator has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Integrator(config) {
              var port = process.env.PORT || 3000,
                  hookUrl = 'https://hooks.slack.com/services/' + config.hookPath;
            
              this.app = express();
            Severity: Minor
            Found in test-set/node-slack-integrator-master/integrator.js - About 1 hr to fix

              Function show has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                , show: function () {
                    var $tip
                      , pos
                      , actualWidth
                      , actualHeight
              Severity: Minor
              Found in test-set/gifsockets-server-master/public/js/bootstrap.js - About 1 hr to fix

                Function linRepulsion has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      linRepulsion: function(c) {
                        this.coefficient = c;
                        this.apply_nn = function(n1, n2) {
                          if (n1.fa2 && n2.fa2)
                          {

                  Function neighborhoods has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    sigma.plugins.neighborhoods = function() {
                      var ready = false,
                          readyCallbacks = [],
                          graph = new sigma.classes.graph();
                  
                  

                    Function resize has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      sigma.renderers.webgl.prototype.resize = function(w, h) {
                        var k,
                            oldWidth = this.width,
                            oldHeight = this.height;
                    
                    

                      Consider simplifying this complex logical expression.
                      Open

                                  if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                      ( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                                      ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                      !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                      
                      
                      Severity: Critical
                      Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                        Function addCombinator has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function addCombinator( matcher, combinator, base ) {
                            var dir = combinator.dir,
                                checkNonElements = base && dir === "parentNode",
                                doneName = done++;
                        
                        
                        Severity: Minor
                        Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                          Function val has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              val: function( value ) {
                                  var ret, hooks, isFunction,
                                      elem = this[0];
                          
                                  if ( !arguments.length ) {
                          Severity: Minor
                          Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                            Function renderCamera has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              sigma.prototype.renderCamera = function(camera, force) {
                                var i,
                                    l,
                                    a,
                                    self = this;
                            Severity: Minor
                            Found in prototypes/express/src/console/sigma/src/sigma.core.js - About 1 hr to fix

                              Function parse has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function parse(graph) {
                                    // Adapt the graph:
                                    arr = graph.nodes;
                                    for (i = 0, l = arr.length; i < l; i++) {
                                      obj = arr[i];

                                Function _doubleClickHandler has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _doubleClickHandler(e) {
                                      var pos,
                                          count,
                                          ratio,
                                          newRatio;

                                  Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    d3.layout.cluster = function() {
                                      var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                                      function cluster(d, i) {
                                        var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
                                        d3_layout_hierarchyVisitAfter(root, function(node) {
                                  Severity: Minor
                                  Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                                    Function d3_time_format has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function d3_time_format(template) {
                                          var n = template.length;
                                          function format(date) {
                                            var string = [], i = -1, j = 0, c, p, f;
                                            while (++i < n) {
                                    Severity: Minor
                                    Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                                      Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          stop: function( type, clearQueue, gotoEnd ) {
                                              var stopQueue = function( hooks ) {
                                                  var stop = hooks.stop;
                                                  delete hooks.stop;
                                                  stop( gotoEnd );
                                      Severity: Minor
                                      Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                                        Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                var type, origFn;
                                        
                                                // Types can be a map of types/handlers
                                                if ( typeof types === "object" ) {
                                        Severity: Minor
                                        Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language