brynary/rack-bug

View on GitHub

Showing 67 of 86 total issues

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

function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
    var sibDir = dir == "previousSibling" && !isXML;
    for ( var i = 0, l = checkSet.length; i < l; i++ ) {
        var elem = checkSet[i];
        if ( elem ) {
Severity: Minor
Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

        curCSS: function( elem, name, force ) {
            var ret, style = elem.style;
    
            // We need to handle opacity special in IE
            if ( name == "opacity" && !jQuery.support.opacity ) {
    Severity: Minor
    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

          load: function( url, params, callback ) {
              if ( typeof url !== "string" )
                  return this._load( url );
      
              var off = url.indexOf(" ");
      Severity: Minor
      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if ( match[1] == "nth" ) {
                        // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
                        var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
                            match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
                            !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
        Severity: Critical
        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

              step: function(gotoEnd){
                  var t = now();
          
                  if ( gotoEnd || t >= this.options.duration + this.startTime ) {
                      this.now = this.end;
          Severity: Minor
          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                init: function( selector, context ) {
                    // Make sure that a selection was provided
                    selector = selector || document;
            
                    // Handle $(DOMElement)
            Severity: Minor
            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                  jQuery.fn.offset = function() {
                      if ( !this[0] ) return { top: 0, left: 0 };
                      if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
                      jQuery.offset.initialized || jQuery.offset.initialize();
              
              
              Severity: Minor
              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.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 lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                  function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                      var sibDir = dir == "previousSibling" && !isXML;
                      for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                          var elem = checkSet[i];
                          if ( elem ) {
                  Severity: Minor
                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                        clone: function( events ) {
                            // Do the clone
                            var ret = this.map(function(){
                                if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
                                    // IE copies events bound via attachEvent when
                    Severity: Minor
                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                      function bindReady(){
                          if ( readyBound ) return;
                          readyBound = true;
                      
                          // Mozilla, Opera and webkit nightlies currently support this event
                      Severity: Minor
                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                            fix: function(event) {
                                if ( event[expando] )
                                    return event;
                        
                                // store a copy of the original event object
                        Severity: Minor
                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                          jQuery.extend = jQuery.fn.extend = function() {
                              // copy reference to target object
                              var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
                          
                              // Handle a deep copy situation
                          Severity: Minor
                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                                show: function(speed,callback){
                                    if ( speed ) {
                                        return this.animate( genFx("show", 3), speed, callback);
                                    } else {
                                        for ( var i = 0, l = this.length; i < l; i++ ){
                            Severity: Minor
                            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

                              Function dirNodeCheck has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                              Severity: Minor
                              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    if ( results[i] === results[i-1] ) {
                                                        results.splice(i--, 1);
                                                    }
                                Severity: Major
                                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if ( !inplace ) {
                                                          curLoop = result;
                                                      }
                                  Severity: Major
                                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( !anyFound ) {
                                                            return [];
                                                        }
                                    Severity: Major
                                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ( option.selected ) {
                                                                  // Get the specifc value for the option
                                                                  value = jQuery(option).val();
                                      
                                                                  // We don't need an array for one selects
                                      Severity: Major
                                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
                                                                        if (elem.removeEventListener)
                                                                            elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
                                                                        else if (elem.detachEvent)
                                                                            elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
                                        Severity: Major
                                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language