stevenocchipinti/dwi-visualiser

View on GitHub

Showing 319 of 620 total issues

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

    _create: function() {
        this.originalTitle = this.element.attr( "title" );
        // #5742 - .attr() might return a DOMElement
        if ( typeof this.originalTitle !== "string" ) {
            this.originalTitle = "";
Severity: Major
Found in public/lib/jquery-ui.js - About 4 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
                    if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                    inst.snapElements[i].snapping = false;
                    continue;
                }
    Severity: Critical
    Found in public/lib/jquery-ui.js - About 4 hrs to fix

      Function plotLineArea has 96 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  function plotLineArea(datapoints, axisx, axisy) {
                      var points = datapoints.points,
                          ps = datapoints.pointsize,
                          bottom = Math.min(Math.max(0, axisy.min), axisy.max),
                          i = 0, top, areaOpen = false,
      Severity: Major
      Found in public/lib/jquery.flot.js - About 3 hrs to fix

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

            _create: function() {
        
                var that = this, o = this.options;
                this.element.addClass("ui-resizable");
        
        
        Severity: Major
        Found in public/lib/jquery-ui.js - About 3 hrs to fix

          Function drawBar has 86 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function drawBar(x, y, b, barLeft, barRight, offset, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) {
                      var left, right, bottom, top,
                          drawLeft, drawRight, drawTop, drawBottom,
                          tmp;
          
          
          Severity: Major
          Found in public/lib/jquery.flot.js - About 3 hrs to fix

            Function remove has 85 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                remove: function( elem, types, handler, pos ) {
                    // don't do events on text and comment nodes
                    if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                        return;
                    }
            Severity: Major
            Found in public/lib/jquery.js - About 3 hrs to fix

              Function send has 81 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                              send: function( headers, complete ) {
              
                                  // Get a new xhr
                                  var xhr = s.xhr(),
                                      handle,
              Severity: Major
              Found in public/lib/jquery.js - About 3 hrs to fix

                Function _keydown has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _keydown: function( event ) {
                        var match, prev, character, skip, regex,
                            preventDefault = true;
                
                        function escape( value ) {
                Severity: Major
                Found in public/lib/jquery-ui.js - About 3 hrs to fix

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

                      add: function( elem, types, handler, data ) {
                          if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                              return;
                          }
                  
                  
                  Severity: Major
                  Found in public/lib/jquery.js - About 3 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                    if ( "getBoundingClientRect" in document.documentElement ) {
                        jQuery.fn.offset = function( options ) {
                            var elem = this[0], box;
                    
                            if ( options ) {
                    Severity: Critical
                    Found in public/lib/jquery.js - About 3 hrs to fix

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

                          _create: function() {
                              var accordionId = this.accordionId = "ui-accordion-" +
                                      (this.element.attr( "id" ) || ++uid),
                                  options = this.options;
                      
                      
                      Severity: Major
                      Found in public/lib/jquery-ui.js - About 3 hrs to fix

                        Function Datepicker has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function Datepicker() {
                            this.debug = false; // Change this to true to start debugging
                            this._curInst = null; // The current instance in use
                            this._keyEvent = false; // If the last event was a key event
                            this._disabledInputs = []; // List of date picker inputs that have been disabled
                        Severity: Major
                        Found in public/lib/jquery-ui.js - About 3 hrs to fix

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

                              _create: function() {
                                  this.activeMenu = this.element;
                                  this.element
                                      .uniqueId()
                                      .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )
                          Severity: Major
                          Found in public/lib/jquery-ui.js - About 2 hrs to fix

                            Function animate has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                animate: function( prop, speed, easing, callback ) {
                                    var optall = jQuery.speed(speed, easing, callback);
                            
                                    if ( jQuery.isEmptyObject( prop ) ) {
                                        return this.each( optall.complete );
                            Severity: Major
                            Found in public/lib/jquery.js - About 2 hrs to fix

                              Function trigger has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  trigger: function( event, data, elem /*, bubbling */ ) {
                                      // Event object or event type
                                      var type = event.type || event,
                                          bubbling = arguments[3];
                              
                              
                              Severity: Major
                              Found in public/lib/jquery.js - About 2 hrs to fix

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

                                    val: function( value ) {
                                        if ( !arguments.length ) {
                                            var elem = this[0];
                                
                                            if ( elem ) {
                                Severity: Major
                                Found in public/lib/jquery.js - About 2 hrs to fix

                                  Function widget has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  $.widget = function( name, base, prototype ) {
                                      var fullName, existingConstructor, constructor, basePrototype,
                                          namespace = name.split( "." )[ 0 ];
                                  
                                      name = name.split( "." )[ 1 ];
                                  Severity: Major
                                  Found in public/lib/jquery-ui.js - About 2 hrs to fix

                                    Function formatDate has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        formatDate: function (format, date, settings) {
                                            if (!date)
                                                return '';
                                            var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
                                            var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
                                    Severity: Major
                                    Found in public/lib/jquery-ui.js - About 2 hrs to fix

                                      Function _mouseDrag has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _mouseDrag: function(event) {
                                              var that = this;
                                              this.dragged = true;
                                      
                                              if (this.options.disabled)
                                      Severity: Major
                                      Found in public/lib/jquery-ui.js - About 2 hrs to fix

                                        Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function done( status, statusText, responses, headers ) {
                                        
                                                    // Called once
                                                    if ( state === 2 ) {
                                                        return;
                                        Severity: Major
                                        Found in public/lib/jquery.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language