Undev/redmine-stuff-to-do-plugin

View on GitHub

Showing 175 of 609 total issues

Function transfer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.transfer = function(o) {

    return this.queue(function() {

        // Create element
Severity: Minor
Found in assets/javascripts/ui/effects.transfer.js - About 1 hr to fix

    Function _refreshItems has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _refreshItems: function() {
            
            this.items = [];
            this.containers = [this];
            var items = this.items;
    Severity: Minor
    Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

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

          _makeResizable: function(handles) {
              handles = (handles === undefined ? this.options.resizable : handles);
              var self = this,
                  options = this.options,
                  resizeHandles = typeof handles == 'string'
      Severity: Minor
      Found in assets/javascripts/ui/ui.dialog.js - About 1 hr to fix

        Function pulsate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.effects.pulsate = function(o) {
        
            return this.queue(function() {
        
                // Create element
        Severity: Minor
        Found in assets/javascripts/ui/effects.pulsate.js - About 1 hr to fix

          Function drag has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              drag: function(draggable, e) {
                  
                  //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                  if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e);
                  
          Severity: Minor
          Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

            Function open has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                open: function() {
                    if (this._isOpen) { return; }
            
                    this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
                    (this.uiDialog.next().length && this.uiDialog.appendTo('body'));
            Severity: Minor
            Found in assets/javascripts/ui/ui.dialog.js - About 1 hr to fix

              Function drag has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  drag: function(draggable, event) {
              
                      //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                      if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
              
              
              Severity: Minor
              Found in assets/javascripts/ui/ui.droppable.js - About 1 hr to fix

                Function _drag has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _drag: function(event, handle) {
                
                        var o = this.options;
                
                        var position = { top: event.pageY - this.offset.top - this.clickOffset.top, left: event.pageX - this.offset.left - this.clickOffset.left};
                Severity: Minor
                Found in assets/javascripts/ui/ui.slider.js - About 1 hr to fix

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

                  $.effects.shake = function(o) {
                  
                      return this.queue(function() {
                  
                          // Create element
                  Severity: Minor
                  Found in assets/javascripts/ui/effects.shake.js - About 1 hr to fix

                    Function refreshPositions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        refreshPositions: function(fast) {
                    
                            //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
                            if(this.offsetParent) {
                                var po = this.offsetParent.offset();
                    Severity: Minor
                    Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

                      Function _setDateFromField has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _setDateFromField: function(inst) {
                              var dateFormat = this._get(inst, 'dateFormat');
                              var dates = inst.input ? inst.input.val().split(this._get(inst, 'rangeSeparator')) : null;
                              inst.endDay = inst.endMonth = inst.endYear = null;
                              var date = defaultDate = this._getDefaultDate(inst);
                      Severity: Minor
                      Found in assets/javascripts/ui/ui.datepicker.js - About 1 hr to fix

                        Function drag has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            drag: function(event, ui) {
                        
                                var o = ui.options, scrolled = false;
                                var i = $(this).data("draggable");
                        
                        
                        Severity: Minor
                        Found in assets/javascripts/ui/ui.draggable.js - About 1 hr to fix

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

                              _keydown: function(event) {
                                  if (this.options.disabled || event.altKey || event.ctrlKey)
                                      return;
                          
                                  var keyCode = $.ui.keyCode;
                          Severity: Minor
                          Found in assets/javascripts/ui/ui.accordion.js - About 1 hr to fix

                            Function scale has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            $.effects.scale = function(o) {
                            
                                return this.queue(function() {
                            
                                    // Create element
                            Severity: Minor
                            Found in assets/javascripts/ui/effects.scale.js - About 1 hr to fix

                              Function _createPlaceholder has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _createPlaceholder: function(that) {
                              
                                      var self = that || this, o = self.options;
                              
                                      if(!o.placeholder || o.placeholder.constructor == String) {
                              Severity: Minor
                              Found in assets/javascripts/ui/ui.sortable.js - About 1 hr to fix

                                Function _setDate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _setDate: function(inst, date, endDate) {
                                        var clear = !(date);
                                        var origMonth = inst.selectedMonth;
                                        var origYear = inst.selectedYear;
                                        date = this._determineDate(date, new Date());
                                Severity: Minor
                                Found in assets/javascripts/ui/ui.datepicker.js - About 1 hr to fix

                                  Function drag has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      drag: function(e, ui) {
                                          
                                          var o = ui.options, scrolled = false;
                                          var i = $(this).data("draggable");
                                          
                                  Severity: Minor
                                  Found in assets/javascripts/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: Major
                                    Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
                                                      (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                      Severity: Major
                                      Found in assets/javascripts/ui/ui.draggable.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if (!this._pos) {
                                                    var browserWidth = window.innerWidth || document.documentElement.clientWidth ||    document.body.clientWidth;
                                                    var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
                                                    var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
                                                    var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
                                        Severity: Major
                                        Found in assets/javascripts/ui/ui.datepicker.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language