stevenocchipinti/dwi-visualiser

View on GitHub

Showing 319 of 620 total issues

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

/*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in public/lib/jquery-ui.js - About 1 mo to fix

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

    /*!
     * jQuery JavaScript Library v1.5.1
     * http://jquery.com/
     *
     * Copyright 2011, John Resig
    Severity: Major
    Found in public/lib/jquery.js - About 2 wks to fix

      Function Plot has 1908 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function Plot(placeholder, data_, options_, plugins) {
              // data is on the form:
              //   [ series1, series2 ... ]
              // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
              // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
      Severity: Major
      Found in public/lib/jquery.flot.js - About 1 wk to fix

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

        /*! Javascript plotting library for jQuery, v. 0.7.
         *
         * Released under the MIT license by IOLA, December 2007.
         *
         */
        Severity: Major
        Found in public/lib/jquery.flot.js - About 5 days to fix

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

          /* ===================================================
           * bootstrap-transition.js v2.2.1
           * http://twitter.github.com/bootstrap/javascript.html#transitions
           * ===================================================
           * Copyright 2012 Twitter, Inc.
          Severity: Major
          Found in public/lib/bootstrap/js/bootstrap.js - About 3 days to fix

            Function jQuery has 699 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var jQuery = (function() {
            
            // Define a local copy of jQuery
            var jQuery = function( selector, context ) {
                    // The jQuery object is actually just the init constructor 'enhanced'
            Severity: Major
            Found in public/lib/jquery.js - About 3 days to fix

              Function ajax has 233 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 public/lib/jquery.js - About 1 day to fix

                Function setupTickGeneration has 210 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function setupTickGeneration(axis) {
                            var opts = axis.options;
                                
                            // estimate number of ticks
                            var noTicks;
                Severity: Major
                Found in public/lib/jquery.flot.js - About 1 day to fix

                  Function _create has 194 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _create: function() {
                          // Some browsers only repeat keydown events, not keypress events,
                          // so we use the suppressKeyPress flag to determine if we've already
                          // handled the keydown event. #7269
                          // Unfortunately the code for & in keypress is the same as the up arrow,
                  Severity: Major
                  Found in public/lib/jquery-ui.js - About 7 hrs to fix

                    Function drawSeriesLines has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function drawSeriesLines(series) {
                                function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {
                                    var points = datapoints.points,
                                        ps = datapoints.pointsize,
                                        prevx = null, prevy = null;
                    Severity: Major
                    Found in public/lib/jquery.flot.js - About 7 hrs to fix

                      Function _generateHTML has 163 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _generateHTML: function(inst) {
                              var today = new Date();
                              today = this._daylightSavingAdjust(
                                  new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
                              var isRTL = this._get(inst, 'isRTL');
                      Severity: Major
                      Found in public/lib/jquery-ui.js - About 6 hrs to fix

                        Function position has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        $.fn.position = function( options ) {
                            if ( !options || !options.of ) {
                                return _position.apply( this, arguments );
                            }
                        
                        
                        Severity: Major
                        Found in public/lib/jquery-ui.js - About 6 hrs to fix

                          Function size has 156 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          $.effects.effect.size = function( o, done ) {
                          
                              // Create element
                              var original, baseline, factor,
                                  el = $( this ),
                          Severity: Major
                          Found in public/lib/jquery-ui.js - About 6 hrs to fix

                            Function processData has 149 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function processData() {
                                        var topSentry = Number.POSITIVE_INFINITY,
                                            bottomSentry = Number.NEGATIVE_INFINITY,
                                            fakeInfinity = Number.MAX_VALUE,
                                            i, j, k, m, length,
                            Severity: Major
                            Found in public/lib/jquery.flot.js - About 5 hrs to fix

                              Function _create has 138 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _create: function() {
                                      var i, handleCount,
                                          o = this.options,
                                          existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
                                          handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",
                              Severity: Major
                              Found in public/lib/jquery-ui.js - About 5 hrs to fix

                                Function _create has 137 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _create: function() {
                                        this.element.closest( "form" )
                                            .unbind( "reset" + this.eventNamespace )
                                            .bind( "reset" + this.eventNamespace, formResetHandler );
                                
                                
                                Severity: Major
                                Found in public/lib/jquery-ui.js - About 5 hrs to fix

                                  Function parseDate has 134 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      parseDate: function (format, value, settings) {
                                          if (format == null || value == null)
                                              throw 'Invalid arguments';
                                          value = (typeof value == 'object' ? value.toString() : value + '');
                                          if (value == '')
                                  Severity: Major
                                  Found in public/lib/jquery-ui.js - About 5 hrs to fix

                                    Function drawGrid has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function drawGrid() {
                                                var i;
                                                
                                                ctx.save();
                                                ctx.translate(plotOffset.left, plotOffset.top);
                                    Severity: Major
                                    Found in public/lib/jquery.flot.js - About 5 hrs to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if ( event.pageX == null && event.clientX != null ) {
                                                  var doc = document.documentElement,
                                                      body = document.body;
                                      
                                                  event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
                                      Severity: Critical
                                      Found in public/lib/jquery.js - About 4 hrs to fix

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

                                        var Sizzle = function( selector, context, results, seed ) {
                                            results = results || [];
                                            context = context || document;
                                        
                                            var origContext = context;
                                        Severity: Major
                                        Found in public/lib/jquery.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language