stevenocchipinti/dwi-visualiser

View on GitHub

Showing 319 of 620 total issues

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

        function setupGrid() {
            var i, axes = allAxes();

            // first calculate the plot and axis box dimensions

Severity: Minor
Found in public/lib/jquery.flot.js - About 1 hr to fix

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

            function insertAxisLabels() {
                placeholder.find(".tickLabels").remove();
                
                var html = ['<div class="tickLabels" style="font-size:smaller">'];
    
    
    Severity: Minor
    Found in public/lib/jquery.flot.js - About 1 hr to fix

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

          jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
              var type, i = 0, match, namespaces, preType,
                  selector = origSelector || this.selector,
                  context = origSelector ? this : jQuery( this.context );
      
      
      Severity: Minor
      Found in public/lib/jquery.js - About 1 hr to fix

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

            _makeResizable: function( handles ) {
                handles = (handles === undefined ? this.options.resizable : handles);
                var that = this,
                    options = this.options,
                    // .ui-resizable has position: relative defined in the stylesheet
        Severity: Minor
        Found in public/lib/jquery-ui.js - About 1 hr to fix

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

          $.effects.effect.shake = function( o, done ) {
          
              var el = $( this ),
                  props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
                  mode = $.effects.setMode( el, o.mode || "effect" ),
          Severity: Minor
          Found in public/lib/jquery-ui.js - About 1 hr to fix

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

                    add: function( url, label, index ) {
                        if ( index === undefined ) {
                            index = this.anchors.length;
                        }
            
            
            Severity: Minor
            Found in public/lib/jquery-ui.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                      if ( ( ( $target[0].id != $.datepicker._mainDivId &&
                              $target.parents('#' + $.datepicker._mainDivId).length == 0 &&
                              !$target.hasClass($.datepicker.markerClassName) &&
                              !$target.closest("." + $.datepicker._triggerClass).length &&
                              $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
              Severity: Critical
              Found in public/lib/jquery-ui.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                        if(!(/^(document|window|parent)$/).test(o.containment)) {
                            var ce = $(o.containment)[0];
                            var co = $(o.containment).offset();
                            var over = ($(ce).css("overflow") != 'hidden');
                
                
                Severity: Critical
                Found in public/lib/jquery-ui.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if (this.floating && horizontalDirection) {
                              return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf));
                          } else {
                              return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf));
                          }
                  Severity: Critical
                  Found in public/lib/jquery-ui.js - About 1 hr to fix

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

                        data: function( key, value ) {
                            var data = null;
                    
                            if ( typeof key === "undefined" ) {
                                if ( this.length ) {
                    Severity: Minor
                    Found in public/lib/jquery.js - About 1 hr to fix

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

                          _eventHandler: function( event ) {
                              var options = this.options,
                                  active = this.active,
                                  clicked = $( event.currentTarget ),
                                  clickedIsActive = clicked[ 0 ] === active[ 0 ],
                      Severity: Minor
                      Found in public/lib/jquery-ui.js - About 1 hr to fix

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

                        jQuery.extend = jQuery.fn.extend = function() {
                            var options, name, src, copy, copyIsArray, clone,
                                target = arguments[0] || {},
                                i = 1,
                                length = arguments.length,
                        Severity: Minor
                        Found in public/lib/jquery.js - About 1 hr to fix

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

                              step: function( gotoEnd ) {
                                  var t = jQuery.now(), done = true;
                          
                                  if ( gotoEnd || t >= this.options.duration + this.startTime ) {
                                      this.now = this.end;
                          Severity: Minor
                          Found in public/lib/jquery.js - About 1 hr to fix

                            Function bridge has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            $.widget.bridge = function( name, object ) {
                                var fullName = object.prototype.widgetFullName || name;
                                $.fn[ name ] = function( options ) {
                                    var isMethodCall = typeof options === "string",
                                        args = slice.call( arguments, 1 ),
                            Severity: Minor
                            Found in public/lib/jquery-ui.js - About 1 hr to fix

                              Function handle has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  handle: function( event ) {
                                      var all, handlers, namespaces, namespace_re, events,
                                          namespace_sort = [],
                                          args = jQuery.makeArray( arguments );
                              
                              
                              Severity: Minor
                              Found in public/lib/jquery.js - About 1 hr to fix

                                Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _on: function( suppressDisabledCheck, element, handlers ) {
                                        var delegateElement,
                                            instance = this;
                                
                                        // no suppressDisabledCheck flag, shuffle arguments
                                Severity: Minor
                                Found in public/lib/jquery-ui.js - About 1 hr to fix

                                  Function _mouseStart has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _mouseStart: function(event) {
                                  
                                          var o = this.options;
                                  
                                          //Create and append the visible helper
                                  Severity: Minor
                                  Found in public/lib/jquery-ui.js - About 1 hr to fix

                                    Function drawBar has 12 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            function drawBar(x, y, b, barLeft, barRight, offset, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) {
                                    Severity: Major
                                    Found in public/lib/jquery.flot.js - About 1 hr to fix

                                      Function intersect has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      $.ui.intersect = function(draggable, droppable, toleranceMode) {
                                      
                                          if (!droppable.offset) return false;
                                      
                                          var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
                                      Severity: Minor
                                      Found in public/lib/jquery-ui.js - About 1 hr to fix

                                        Function drop has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        $.effects.effect.drop = function( o, done ) {
                                        
                                            var el = $( this ),
                                                props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
                                                mode = $.effects.setMode( el, o.mode || "hide" ),
                                        Severity: Minor
                                        Found in public/lib/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language