engineyard/todo

View on GitHub

Showing 145 of 145 total issues

Function fix has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    fix: function( event ) {
        if ( event[ jQuery.expando ] ) {
            return event;
        }

Severity: Minor
Found in public/javascripts/jquery.js - About 1 hr to fix

    Function handleRemote has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        handleRemote: function(element) {
          var method, url, data,
            dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType);
    
          if (rails.fire(element, 'ajax:before')) {
    Severity: Minor
    Found in public/javascripts/jquery_ujs.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                  if ( match[1] === "nth" ) {
                      if ( !match[2] ) {
                          Sizzle.error( match[0] );
                      }
      
      
      Severity: Critical
      Found in public/javascripts/jquery.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

            if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
                args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
        
                cacheable = true;
        
        
        Severity: Critical
        Found in public/javascripts/jquery.js - About 1 hr to fix

          Function each has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              each: function( object, callback, args ) {
                  var name, i = 0,
                      length = object.length,
                      isObj = length === undefined || jQuery.isFunction( object );
          
          
          Severity: Minor
          Found in public/javascripts/jquery.js - About 1 hr to fix

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

                setOffset: function( elem, options, i ) {
                    var position = jQuery.css( elem, "position" );
            
                    // set position first, in-case top/left are set even on static elem
                    if ( position === "static" ) {
            Severity: Minor
            Found in public/javascripts/jquery.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.js - About 1 hr to fix

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

                    when: function( firstParam ) {
                        var args = arguments,
                            i = 0,
                            length = args.length,
                            count = length,
                Severity: Minor
                Found in public/javascripts/jquery.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.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.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.js - About 1 hr to fix

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

                                ATTR: function( elem, match ) {
                                    var name = match[1],
                                        result = Expr.attrHandle[ name ] ?
                                            Expr.attrHandle[ name ]( elem ) :
                                            elem[ name ] != null ?
                        Severity: Minor
                        Found in public/javascripts/jquery.js - About 1 hr to fix

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

                              style: function( elem, name, value, extra ) {
                                  // Don't set styles on text and comment nodes
                                  if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                      return;
                                  }
                          Severity: Minor
                          Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                jQuery.fn[ name ] = function( type, data, fn ) {
                                    var handler;
                            
                                    // Handle object literals
                                    if ( typeof type === "object" ) {
                            Severity: Minor
                            Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                  find: function( selector ) {
                                      var self = this,
                                          i, l;
                              
                                      if ( typeof selector !== "string" ) {
                              Severity: Minor
                              Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                    show: function( speed, easing, callback ) {
                                        var elem, display;
                                
                                        if ( speed || speed === 0 ) {
                                            return this.animate( genFx("show", 3), speed, easing, callback);
                                Severity: Minor
                                Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                      jQuery.fn[ type ] = function( size ) {
                                          // Get window width or height
                                          var elem = this[0];
                                          if ( !elem ) {
                                              return size == null ? null : this;
                                  Severity: Minor
                                  Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                        html: function( value ) {
                                            if ( value === undefined ) {
                                                return this[0] && this[0].nodeType === 1 ?
                                                    this[0].innerHTML.replace(rinlinejQuery, "") :
                                                    null;
                                    Severity: Minor
                                    Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                          custom: function( from, to, unit ) {
                                              var self = this,
                                                  fx = jQuery.fx,
                                                  raf;
                                      
                                      
                                      Severity: Minor
                                      Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                            addClass: function( value ) {
                                                if ( jQuery.isFunction( value ) ) {
                                                    return this.each(function(i) {
                                                        var self = jQuery(this);
                                                        self.addClass( value.call(this, i, self.attr("class") || "") );
                                        Severity: Minor
                                        Found in public/javascripts/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language