Undev/redmine-stuff-to-do-plugin

View on GitHub

Showing 175 of 609 total issues

Function _mouseStop has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseStop: function(event) {
        var self = this;

        this.dragged = false;

Severity: Minor
Found in assets/javascripts/ui/ui.selectable.js - About 1 hr to fix

    Function _mouseDown has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _mouseDown: function(event) {
            // we may have missed mouseup (out of window)
            (this._mouseStarted && this._mouseUp(event));
    
            this._mouseDownEvent = event;
    Severity: Minor
    Found in assets/javascripts/ui/ui.core.js - About 1 hr to fix

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

          _mouseDrag: function(event) {
      
              //Compute the helpers position
              this.position = this._generatePosition(event);
              this.positionAbs = this._convertPositionTo("absolute");
      Severity: Minor
      Found in assets/javascripts/ui/ui.sortable.js - About 1 hr to fix

        Function _generateMonthYearHeader has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                    selectedDate, secondary, showStatus, initStatus, monthNames) {
        Severity: Major
        Found in assets/javascripts/ui/ui.datepicker.js - About 1 hr to fix

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

              add: function(url, label, index) {
                  if (index == undefined)
                      index = this.$tabs.length; // append by default
          
                  var o = this.options;
          Severity: Minor
          Found in assets/javascripts/ui/ui.tabs.js - About 1 hr to fix

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

                _mouseStart: function(event) {
            
                    var o = this.options, iniPos = this.element.position(), el = this.element,
                        num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
                    o.resizing = true;
            Severity: Minor
            Found in assets/javascripts/ui/ui.resizable.js - About 1 hr to fix

              Function _generatePosition has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _generatePosition: function(event) {
              
                      var o = this.options, scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
              
                      var position = {
              Severity: Minor
              Found in assets/javascripts/ui/ui.draggable.js - About 1 hr to fix

                Function _mouseDown has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _mouseDown: function(e) {
                        // we may have missed mouseup (out of window)
                        (this._mouseStarted && this._mouseUp(e));
                        
                        this._mouseDownEvent = e;
                Severity: Minor
                Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

                  Function _dialogDatepicker has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
                          var inst = this._dialogInst; // internal instance
                          if (!inst) {
                              var id = 'dp' + (++this.uuid);
                              this._dialogInput = $('<input type="text" id="' + id +
                  Severity: Minor
                  Found in assets/javascripts/ui/ui.datepicker.js - About 1 hr to fix

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

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

                      Function slide has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              slide: function(options, additions) {
                                  options = $.extend({
                                      easing: "swing",
                                      duration: 300
                                  }, options, additions);
                      Severity: Minor
                      Found in assets/javascripts/ui/ui.accordion.js - About 1 hr to fix

                        Function _generatePosition has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _generatePosition: function(event) {
                        
                                var o = this.options, scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
                        
                                var position = {
                        Severity: Minor
                        Found in assets/javascripts/ui/ui.sortable.js - About 1 hr to fix

                          Function _disableDatepicker has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _disableDatepicker: function(target) {
                                  var $target = $(target);
                                  if (!$target.hasClass(this.markerClassName)) {
                                      return;
                                  }
                          Severity: Minor
                          Found in assets/javascripts/ui/ui.datepicker.js - About 1 hr to fix

                            Function _intersectsWithEdge has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _intersectsWithEdge: function(item) {    
                                    var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
                                        y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
                                    
                                    var l = item.left, r = l + item.width, 
                            Severity: Minor
                            Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

                              Function _contactContainers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _contactContainers: function(event) {
                                      for (var i = this.containers.length - 1; i >= 0; i--){
                              
                                          if(this._intersectsWith(this.containers[i].containerCache)) {
                                              if(!this.containers[i].containerCache.over) {
                              Severity: Minor
                              Found in assets/javascripts/ui/ui.sortable.js - About 1 hr to fix

                                Function _contactContainers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _contactContainers: function(e) {
                                        for (var i = this.containers.length - 1; i >= 0; i--){
                                
                                            if(this._intersectsWith(this.containers[i].containerCache)) {
                                                if(!this.containers[i].containerCache.over) {
                                Severity: Minor
                                Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

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

                                      _init: function() {
                                          var self = this;
                                  
                                          this.element.addClass("ui-selectable");
                                  
                                  
                                  Severity: Minor
                                  Found in assets/javascripts/ui/ui.selectable.js - About 1 hr to fix

                                    Function _generatePosition has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _generatePosition: function(e) {
                                            
                                            var o = this.options;
                                            var position = {
                                                top: (
                                    Severity: Minor
                                    Found in assets/javascripts/jquery-ui.js - About 1 hr to fix

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

                                          rotate: function(ms, continuing) {
                                      
                                              continuing = continuing || false;
                                      
                                              var self = this, t = this.options.selected;
                                      Severity: Minor
                                      Found in assets/javascripts/ui/ui.tabs.js - About 1 hr to fix

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

                                            cancel: function() {
                                        
                                                if(this.dragging) {
                                        
                                                    this._mouseUp();
                                        Severity: Minor
                                        Found in assets/javascripts/ui/ui.sortable.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language