KarrLab/test_history_server

View on GitHub

Showing 406 of 624 total issues

File foundation.js has 443 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Foundation Responsive Library
 * http://foundation.zurb.com
 * Copyright 2014, ZURB
 * Free to use under the MIT license.
Severity: Minor
Found in public/static/js/foundation/foundation.js - About 6 hrs to fix

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

        function init(plot) {
            plot.hooks.processOptions.push(function (plot, options) {
                $.each(plot.getAxes(), function(axisName, axis) {
    
                    var opts = axis.options;
    Severity: Major
    Found in public/static/js/flot-0.8.3/jquery.flot.time.js - About 6 hrs to fix

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

          function init(plot, classes) {
      
              var Canvas = classes.Canvas;
      
              // We only want to replace the functions once; the second time around
      Severity: Major
      Found in public/static/js/flot-0.8.3/jquery.flot.canvas.js - About 6 hrs to fix

        File foundation.clearing.js has 433 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        ;(function ($, window, document, undefined) {
          'use strict';
        
          Foundation.libs.clearing = {
            name : 'clearing',
        Severity: Minor
        Found in public/static/js/foundation/foundation.clearing.js - About 6 hrs to fix

          File foundation.orbit.js has 410 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          ;(function ($, window, document, undefined) {
            'use strict';
          
            var noop = function () {};
          
          
          Severity: Minor
          Found in public/static/js/foundation/foundation.orbit.js - About 5 hrs to fix

            Function support has 143 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jQuery.support = (function() {
            
                var support,
                    all,
                    a,
            Severity: Major
            Found in public/static/js/flot-0.8.3/jquery.js - About 5 hrs to fix

              Function Callbacks has 127 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              jQuery.Callbacks = function( options ) {
              
                  // Convert options from String-formatted to Object-formatted if needed
                  // (we check in cache first)
                  options = typeof options === "string" ?
              Severity: Major
              Found in public/static/js/flot-0.8.3/jquery.js - About 5 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( event.pageX == null && original.clientX != null ) {
                                eventDoc = event.target.ownerDocument || document;
                                doc = eventDoc.documentElement;
                                body = eventDoc.body;
                
                
                Severity: Critical
                Found in public/static/js/flot-0.8.3/jquery.js - About 5 hrs to fix

                  File foundation.reveal.js has 370 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  ;(function ($, window, document, undefined) {
                    'use strict';
                  
                    Foundation.libs.reveal = {
                      name : 'reveal',
                  Severity: Minor
                  Found in public/static/js/foundation/foundation.reveal.js - About 4 hrs to fix

                    File foundation.topbar.js has 359 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    ;(function ($, window, document, undefined) {
                      'use strict';
                    
                      Foundation.libs.topbar = {
                        name : 'topbar',
                    Severity: Minor
                    Found in public/static/js/foundation/foundation.topbar.js - About 4 hrs to fix

                      Function getRule has 114 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function getRule(dt, zone, isUTC) {
                            var date = typeof dt === 'number' ? new Date(dt) : dt;
                            var ruleset = zone[1];
                            var basicOffset = zone[0];
                      
                      
                      Severity: Major
                      Found in public/static/js/flot-0.8.3/examples/axes-time-zones/date.js - About 4 hrs to fix

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

                            function init( plot ) {
                        
                                function findBottomSeries( s, allseries ) {
                        
                                    var i;
                        Severity: Major
                        Found in public/static/js/flot-0.8.3/jquery.flot.fillbetween.js - About 4 hrs to fix

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

                          /*
                          Axis Labels Plugin for flot.
                          http://github.com/markrcote/flot-axislabels
                          
                          Original code is Copyright (c) 2010 Xuan Luo.
                          Severity: Minor
                          Found in public/static/js/jquery.flot.axislabels.js - About 4 hrs to fix

                            Function tickGenerator has 112 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                axis.tickGenerator = function(axis) {
                            
                                                    var ticks = [];
                                                    var d = dateGenerator(axis.min, opts);
                                                    var minSize = 0;
                            Severity: Major
                            Found in public/static/js/flot-0.8.3/jquery.flot.time.js - About 4 hrs to fix

                              File foundation.dropdown.js has 350 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              ;(function ($, window, document, undefined) {
                                'use strict';
                              
                                Foundation.libs.dropdown = {
                                  name : 'dropdown',
                              Severity: Minor
                              Found in public/static/js/foundation/foundation.dropdown.js - About 4 hrs to fix

                                Function events has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    events : function (bar) {
                                      var self = this,
                                          S = this.S;
                                
                                      S(this.scope)
                                Severity: Major
                                Found in public/static/js/foundation.min.js - About 4 hrs to fix

                                  Function events has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      events : function (bar) {
                                        var self = this,
                                            S = this.S;
                                  
                                        S(this.scope)
                                  Severity: Major
                                  Found in public/static/js/foundation/foundation.topbar.js - About 4 hrs to fix

                                    Function parseOptions has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function parseOptions(opts) {
                                    
                                                $.extend(true, options, opts);
                                    
                                                // $.extend merges arrays, rather than replacing them.  When less
                                    Severity: Major
                                    Found in public/static/js/flot-0.8.3/jquery.flot.js - About 4 hrs to fix

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

                                          function init(plot) {
                                              function findMatchingSeries(s, allseries) {
                                                  var res = null;
                                                  for (var i = 0; i < allseries.length; ++i) {
                                                      if (s == allseries[i])
                                      Severity: Major
                                      Found in public/static/js/flot-0.8.3/jquery.flot.stack.js - About 4 hrs to fix

                                        Function drawPie has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                    function drawPie() {
                                        
                                                        var startAngle = Math.PI * options.series.pie.startAngle;
                                                        var radius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius;
                                        
                                        
                                        Severity: Major
                                        Found in public/static/js/flot-0.8.3/jquery.flot.pie.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language