Undev/redmine-stuff-to-do-plugin

View on GitHub

Showing 175 of 609 total issues

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

    _mouseStart: function(e, overrideHandle, noActivation) {

        var o = this.options;
        this.currentContainer = this;

Severity: Major
Found in assets/javascripts/jquery-ui.js - About 3 hrs to fix

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

        _mouseDrag: function(event) {
            var self = this;
            this.dragged = true;
    
            if (this.options.disabled)
    Severity: Major
    Found in assets/javascripts/ui/ui.selectable.js - About 2 hrs to fix

      Function formatDate has 69 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 assets/javascripts/ui/ui.datepicker.js - About 2 hrs to fix

        Function _init has 66 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _init: function() {
                var options = this.options;
        
                if ( options.navigation ) {
                    var current = this.element.find("a").filter(options.navigationFilter);
        Severity: Major
        Found in assets/javascripts/ui/ui.accordion.js - About 2 hrs to fix

          Function _generateMonthYearHeader has 60 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                      selectedDate, secondary, showStatus, initStatus, monthNames) {
                  minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
                  var changeMonth = this._get(inst, 'changeMonth');
                  var changeYear = this._get(inst, 'changeYear');
          Severity: Major
          Found in assets/javascripts/ui/ui.datepicker.js - About 2 hrs to fix

            Function _doKeyDown has 60 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _doKeyDown: function(event) {
                    var inst = $.datepicker._getInst(event.target);
                    var handled = true;
                    inst._keyEvent = true;
                    if ($.datepicker._datepickerShowing)
            Severity: Major
            Found in assets/javascripts/ui/ui.datepicker.js - About 2 hrs to fix

              Function toggle has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function toggle(toShow, toHide, data, clickedActive, down) {
                  var options = $.data(this, "accordion").options;
                  options.toShow = toShow;
                  options.toHide = toHide;
                  options.data = data;
              Severity: Major
              Found in assets/javascripts/ui/ui.accordion.js - About 2 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                                if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
                                && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
                                && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
                                && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
                                && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
                Severity: Critical
                Found in assets/javascripts/jquery-ui.js - About 2 hrs to fix

                  Function _showDatepicker has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _showDatepicker: function(input) {
                          input = input.target || input;
                          if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
                              input = $('input', input.parentNode)[0];
                          if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
                  Severity: Major
                  Found in assets/javascripts/ui/ui.datepicker.js - About 2 hrs to fix

                    Function moveTo has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        moveTo: function(value, handle, noPropagation) {
                    
                            var o = this.options;
                    
                            // Prepare the outer size
                    Severity: Major
                    Found in assets/javascripts/ui/ui.slider.js - About 2 hrs to fix

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

                          _mouseStart: function(e) {
                              
                              var o = this.options;
                              
                              //Create and append the visible helper
                      Severity: Major
                      Found in assets/javascripts/jquery-ui.js - About 2 hrs to fix

                        Function _init has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _init: function() {
                        
                                var self = this;
                                this.element.addClass("ui-slider ui-widget ui-widget-content ui-corner-all");
                                this._initBoundaries();
                        Severity: Major
                        Found in assets/javascripts/ui/ui.slider.js - About 2 hrs to fix

                          Function bounce has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Function clickHandler has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function clickHandler(event) {
                                var options = $.data(this, "accordion").options;
                                if (options.disabled) {
                                    return false;
                                }
                            Severity: Minor
                            Found in assets/javascripts/ui/ui.accordion.js - About 1 hr to fix

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

                              $.widget = function(name, prototype) {
                                  var namespace = name.split(".")[0];
                                  name = name.split(".")[1];
                              
                                  // create plugin method
                              Severity: Minor
                              Found in assets/javascripts/ui/ui.core.js - About 1 hr to fix

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

                                    _mouseStart: function(event, overrideHandle, noActivation) {
                                
                                        var o = this.options;
                                        this.currentContainer = this;
                                
                                
                                Severity: Minor
                                Found in assets/javascripts/ui/ui.sortable.js - About 1 hr to fix

                                  Function explode has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  $.effects.explode = function(o) {
                                  
                                      return this.queue(function() {
                                  
                                      var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
                                  Severity: Minor
                                  Found in assets/javascripts/ui/effects.explode.js - About 1 hr to fix

                                    Function load has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        load: function(index, callback) { // callback is for internal usage only
                                    
                                            var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0],
                                                    bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs');
                                    
                                    
                                    Severity: Minor
                                    Found in assets/javascripts/ui/ui.tabs.js - About 1 hr to fix

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

                                      $.widget = function(name, prototype) {
                                          var namespace = name.split(".")[0];
                                          name = name.split(".")[1];
                                          
                                          // create plugin method
                                      Severity: Minor
                                      Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

                                        Function _position has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _position: function(pos) {
                                                var wnd = $(window), doc = $(document),
                                                    pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
                                                    minTop = pTop;
                                        
                                        
                                        Severity: Minor
                                        Found in assets/javascripts/ui/ui.dialog.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language