ianheggie/cruisecontrol.rb

View on GitHub

Showing 679 of 1,357 total issues

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

    drag: function(event, ui) {

        var i = $(this).data("draggable"), o = i.options, scrolled = false;

        if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {

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

        create: function(dialog) {
            if (this.instances.length === 0) {
                // prevent use of anchors and inputs
                // we use a setTimeout in case the overlay is created from an
                // event that we're going to be cancelling (see #2804)

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

      $.effects.highlight = function(o) {
          return this.queue(function() {
              var elem = $(this),
                  props = ['backgroundImage', 'backgroundColor', 'opacity'],
                  mode = $.effects.setMode(elem, o.options.mode || 'show'),

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

        function cloneFixAttributes( src, dest ) {
            var nodeName;
        
            // We do not need to do anything for non-Elements
            if ( dest.nodeType !== 1 ) {
        Severity: Minor
        Found in public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 1 hr to fix

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

          function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
              for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                  var elem = checkSet[i];
          
                  if ( elem ) {
          Severity: Minor
          Found in public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 1 hr to fix

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

                promise: function( type, object ) {
                    if ( typeof type !== "string" ) {
                        object = type;
                        type = undefined;
                    }
            Severity: Minor
            Found in public/javascripts/jquery-1.6.1.js - About 1 hr to fix

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

                  cleanData: function( elems ) {
                      var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special,
                          deleteExpando = jQuery.support.deleteExpando;
              
                      for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
              Severity: Minor
              Found in public/javascripts/jquery-1.6.1.js - About 1 hr to fix

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

                    jQuery.fn.offset = function( options ) {
                        var elem = this[0], box;
                
                        if ( options ) {
                            return this.each(function( i ) {
                Severity: Minor
                Found in public/javascripts/jquery-1.6.1.js - About 1 hr to fix

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

                      resize: function(event, ui) {
                          var self = $(this).data("resizable"), o = self.options,
                                  ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
                                  pRatio = self._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
                  
                  

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

                        resize: function() {
                            var options = this.options,
                                maxHeight;
                    
                            if ( options.fillSpace ) {

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

                          _optionDatepicker: function(target, name, value) {
                              var inst = this._getInst(target);
                              if (arguments.length == 2 && typeof name == 'string') {
                                  return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
                                      (inst ? (name == 'all' ? $.extend({}, inst.settings) :

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

                            _initSource: function() {
                                var self = this,
                                    array,
                                    url;
                                if ( $.isArray(this.options.source) ) {

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

                              _determineButtonType: function() {
                          
                                  if ( this.element.is(":checkbox") ) {
                                      this.type = "checkbox";
                                  } else if ( this.element.is(":radio") ) {

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

                                _initSource: function() {
                                    var self = this,
                                        array,
                                        url;
                                    if ( $.isArray(this.options.source) ) {

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

                                  _optionDatepicker: function(target, name, value) {
                                      var inst = this._getInst(target);
                                      if (arguments.length == 2 && typeof name == 'string') {
                                          return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
                                              (inst ? (name == 'all' ? $.extend({}, inst.settings) :

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

                                    _determineButtonType: function() {
                                
                                        if ( this.element.is(":checkbox") ) {
                                            this.type = "checkbox";
                                        } else if ( this.element.is(":radio") ) {

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

                                      resize: function(event, ui) {
                                          var self = $(this).data("resizable"), o = self.options,
                                                  ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
                                                  pRatio = self._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
                                  
                                  

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

                                        resize: function() {
                                            var options = this.options,
                                                maxHeight;
                                    
                                            if ( options.fillSpace ) {

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

                                          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                              var srcElements,
                                                  destElements,
                                                  i,
                                                  // IE<=8 does not properly clone detached, unknown element nodes
                                      Severity: Minor
                                      Found in public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 1 hr to fix

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

                                            promise: function( type, object ) {
                                                if ( typeof type !== "string" ) {
                                                    object = type;
                                                    type = undefined;
                                                }
                                        Severity: Minor
                                        Found in public/javascripts/jquery-ui/development-bundle/jquery-1.7.2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language