brynary/rack-bug

View on GitHub
lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js

Summary

Maintainability
F
2 wks
Test Coverage

File jquery-1.3.2.js has 3038 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
Severity: Major
Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 wk to fix

    Function ajax has 163 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        ajax: function( s ) {
            // Extend the settings, but re-extend 's' so that it can be
            // checked again later (in the test suite, specifically)
            s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
    
    
    Severity: Major
    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 6 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                  if ( typeof elem === "string" ) {
                      // Fix "XHTML"-style tags in all browsers
                      elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
                          return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
                              all :
      Severity: Critical
      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 4 hrs to fix

        Function Sizzle has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var Sizzle = function(selector, context, results, seed) {
            results = results || [];
            context = context || document;
        
            if ( context.nodeType !== 1 && context.nodeType !== 9 )
        Severity: Major
        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 3 hrs to fix

          Consider simplifying this complex logical expression.
          Open

          if ( document.documentElement["getBoundingClientRect"] )
              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] );
                  var box  = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
          Severity: Critical
          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 3 hrs to fix

            Function clean has 72 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                clean: function( elems, context, fragment ) {
                    context = context || document;
            
                    // !context.createElement fails in IE with an error but returns typeof 'object'
                    if ( typeof context.createElement === "undefined" )
            Severity: Major
            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                      if ( event.pageX == null && event.clientX != null ) {
                          var doc = document.documentElement, body = document.body;
                          event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
                          event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
                      }
              Severity: Critical
              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 2 hrs to fix

                Function filter has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Sizzle.filter = function(expr, set, inplace, not){
                    var old = expr, result = [], curLoop = set, match, anyFound,
                        isXMLFilter = set && set[0] && isXML(set[0]);
                
                    while ( expr && set.length ) {
                Severity: Major
                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 2 hrs to fix

                  Function attr has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      attr: function( elem, name, value ) {
                          // don't set attributes on text and comment nodes
                          if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
                              return undefined;
                  
                  
                  Severity: Major
                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 2 hrs to fix

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

                        remove: function(elem, types, handler) {
                            // don't do events on text and comment nodes
                            if ( elem.nodeType == 3 || elem.nodeType == 8 )
                                return;
                    
                    
                    Severity: Minor
                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                          val: function( value ) {
                              if ( value === undefined ) {            
                                  var elem = this[0];
                      
                                  if ( elem ) {
                      Severity: Minor
                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

                        Function trigger has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            trigger: function( event, data, elem, bubbling ) {
                                // Event object or event type
                                var type = event.type || event;
                        
                                if( !bubbling ){
                        Severity: Minor
                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

                          Function onreadystatechange has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  var onreadystatechange = function(isTimeout){
                                      // The request was aborted, clear the interval and decrement jQuery.active
                                      if (xhr.readyState == 0) {
                                          if (ival) {
                                              // clear poll interval
                          Severity: Minor
                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

                            Function animate has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                animate: function( prop, speed, easing, callback ) {
                                    var optall = jQuery.speed(speed, easing, callback);
                            
                                    return this[ optall.queue === false ? "each" : "queue" ](function(){
                                    
                            Severity: Minor
                            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

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

                                  add: function(elem, types, handler, data) {
                                      if ( elem.nodeType == 3 || elem.nodeType == 8 )
                                          return;
                              
                                      // For whatever reason, IE has trouble passing the window object
                              Severity: Minor
                              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

                                Function CHILD has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        CHILD: function(elem, match){
                                            var type = match[1], node = elem;
                                            switch (type) {
                                                case 'only':
                                                case 'first':
                                Severity: Minor
                                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 1 hr to fix

                                  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

                                                                          Avoid deeply nested control flow statements.
                                                                          Open

                                                                                                      for ( var handle in events[type] )
                                                                                                          // Handle the removal of namespaced events
                                                                                                          if ( namespace.test(events[type][handle].type) )
                                                                                                              delete events[type][handle];
                                                                          Severity: Major
                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

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

                                                                                    ATTR: function(match, curLoop, inplace, result, not, 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 ( !isXML ) {
                                                                                                      elem.sizcache = doneName;
                                                                                                      elem.sizset = i;
                                                                                                  }
                                                                              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 ( !match ) {
                                                                                                        anyFound = found = true;
                                                                                                    } else if ( match === true ) {
                                                                                                        continue;
                                                                                                    }
                                                                                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

                                                                                                      for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
                                                                                                          if ( item ) {
                                                                                                              found = filter( item, match, i, curLoop );
                                                                                                              var pass = not ^ !!found;
                                                                                  
                                                                                  
                                                                                  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 ( display === "none" )
                                                                                                                display = "block";
                                                                                    Severity: Major
                                                                                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

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

                                                                                              CLASS: function(match, curLoop, inplace, result, not, isXML){
                                                                                      Severity: Minor
                                                                                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

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

                                                                                        function dirCheck( 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 ( typeof cur !== "string" ) {
                                                                                                                  if ( elem === cur ) {
                                                                                                                      match = true;
                                                                                                                      break;
                                                                                                                  }
                                                                                          Severity: Major
                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                                                                                            Consider simplifying this complex logical expression.
                                                                                            Open

                                                                                                    if ( s.dataType == "script" && type == "GET" && parts
                                                                                                        && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
                                                                                            
                                                                                                        var head = document.getElementsByTagName("head")[0];
                                                                                                        var script = document.createElement("script");
                                                                                            Severity: Major
                                                                                            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 40 mins to fix

                                                                                              Function prop has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  prop: function( elem, value, type, i, name ) {
                                                                                              Severity: Minor
                                                                                              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 35 mins to fix

                                                                                                Function PSEUDO has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                Open

                                                                                                        PSEUDO: function(match, curLoop, inplace, result, not){
                                                                                                Severity: Minor
                                                                                                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 35 mins to fix

                                                                                                  Avoid too many return statements within this function.
                                                                                                  Open

                                                                                                          return this.each(function(){
                                                                                                              if ( this.nodeType != 1 )
                                                                                                                  return;
                                                                                                  
                                                                                                              if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
                                                                                                  Severity: Major
                                                                                                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                    Avoid too many return statements within this function.
                                                                                                    Open

                                                                                                            return this.setArray(jQuery.isArray( selector ) ?
                                                                                                                selector :
                                                                                                                jQuery.makeArray(selector));
                                                                                                    Severity: Major
                                                                                                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                      Avoid too many return statements within this function.
                                                                                                      Open

                                                                                                                              return diff == 0;
                                                                                                      Severity: Major
                                                                                                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                        Avoid too many return statements within this function.
                                                                                                        Open

                                                                                                                        return jQuery.attr( elem.style, "cssText", value );
                                                                                                        Severity: Major
                                                                                                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                          Avoid too many return statements within this function.
                                                                                                          Open

                                                                                                                      return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
                                                                                                                          (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
                                                                                                                          "";
                                                                                                          Severity: Major
                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                            Avoid too many return statements within this function.
                                                                                                            Open

                                                                                                                    return elem[ name ];
                                                                                                            Severity: Major
                                                                                                            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                              Avoid too many return statements within this function.
                                                                                                              Open

                                                                                                                          return jQuery( document ).ready( selector );
                                                                                                              Severity: Major
                                                                                                              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                                Avoid too many return statements within this function.
                                                                                                                Open

                                                                                                                            return undefined;
                                                                                                                Severity: Major
                                                                                                                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                                  Avoid too many return statements within this function.
                                                                                                                  Open

                                                                                                                              return attr === null ? undefined : attr;
                                                                                                                  Severity: Major
                                                                                                                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                                    Avoid too many return statements within this function.
                                                                                                                    Open

                                                                                                                                            return ( diff % first == 0 && diff / first >= 0 );
                                                                                                                    Severity: Major
                                                                                                                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                                      Avoid too many return statements within this function.
                                                                                                                      Open

                                                                                                                                      return (elem.value || "").replace(/\r/g, "");
                                                                                                                      Severity: Major
                                                                                                                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                                        Avoid too many return statements within this function.
                                                                                                                        Open

                                                                                                                                                return true;
                                                                                                                        Severity: Major
                                                                                                                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                              stopPropagation: function() {
                                                                                                                                  this.isPropagationStopped = returnTrue;
                                                                                                                          
                                                                                                                                  var e = this.originalEvent;
                                                                                                                                  if( !e )
                                                                                                                          Severity: Major
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 2 hrs to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2830..2841

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 76.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                              preventDefault: function() {
                                                                                                                                  this.isDefaultPrevented = returnTrue;
                                                                                                                          
                                                                                                                                  var e = this.originalEvent;
                                                                                                                                  if( !e )
                                                                                                                          Severity: Major
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 2 hrs to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2842..2853

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 76.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                      event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
                                                                                                                          Severity: Major
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 1 hr to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2741..2741

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 55.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                      event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
                                                                                                                          Severity: Major
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 1 hr to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2742..2742

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 55.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                          this.checked = (jQuery.inArray(this.value, value) >= 0 ||
                                                                                                                                              jQuery.inArray(this.name, value) >= 0);
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 40 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 471..472

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 49.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                              this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
                                                                                                                                                  jQuery.inArray( this.text, values ) >= 0);
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 40 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 464..465

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 49.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                          Sizzle.selectors.filters.visible = function(elem){
                                                                                                                              return elem.offsetWidth > 0 || elem.offsetHeight > 0;
                                                                                                                          };
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 40 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2369..2371

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 48.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                          Sizzle.selectors.filters.hidden = function(elem){
                                                                                                                              return elem.offsetWidth === 0 || elem.offsetHeight === 0;
                                                                                                                          };
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 40 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 2373..2375

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 48.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                  this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 35 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4086..4086

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 46.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                  this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 35 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4071..4071

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 46.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                      top  = box.top  + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 30 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4179..4179

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 45.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                          Open

                                                                                                                                      left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js and 1 other location - About 30 mins to fix
                                                                                                                          lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js on lines 4178..4178

                                                                                                                          Duplicated Code

                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                          Tuning

                                                                                                                          This issue has a mass of 45.

                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                          Refactorings

                                                                                                                          Further Reading

                                                                                                                          There are no issues that match your filters.

                                                                                                                          Category
                                                                                                                          Status