codenothing/CSSCompressor

View on GitHub
demo/rules/js/jquery.js

Summary

Maintainability
F
1 mo
Test Coverage

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

/*!
 * jQuery JavaScript Library v1.4.4
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
Severity: Major
Found in demo/rules/js/jquery.js - About 2 wks to fix

    Function jQuery has 548 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var jQuery = (function() {
    
    // Define a local copy of jQuery
    var jQuery = function( selector, context ) {
            // The jQuery object is actually just the init constructor 'enhanced'
    Severity: Major
    Found in demo/rules/js/jquery.js - About 2 days to fix

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

          ajax: function( origSettings ) {
              var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings),
                  jsonp, status, data, type = s.type.toUpperCase(), noContent = rnoContent.test(type);
      
              s.url = s.url.replace( rhash, "" );
      Severity: Major
      Found in demo/rules/js/jquery.js - About 7 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 && doc.clientLeft || body && body.clientLeft || 0);
        Severity: Critical
        Found in demo/rules/js/jquery.js - About 4 hrs to fix

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

          var Sizzle = function( selector, context, results, seed ) {
              results = results || [];
              context = context || document;
          
              var origContext = context;
          Severity: Major
          Found in demo/rules/js/jquery.js - About 4 hrs to fix

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

                remove: function( elem, types, handler, pos ) {
                    // don't do events on text and comment nodes
                    if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                        return;
                    }
            Severity: Major
            Found in demo/rules/js/jquery.js - About 3 hrs to fix

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

                  add: function( elem, types, handler, data ) {
                      if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                          return;
                      }
              
              
              Severity: Major
              Found in demo/rules/js/jquery.js - About 3 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                if ( "getBoundingClientRect" in document.documentElement ) {
                    jQuery.fn.offset = function( options ) {
                        var elem = this[0], box;
                
                        if ( options ) { 
                Severity: Critical
                Found in demo/rules/js/jquery.js - About 3 hrs to fix

                  Function trigger has 71 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,
                              bubbling = arguments[3];
                  
                  
                  Severity: Major
                  Found in demo/rules/js/jquery.js - About 2 hrs to fix

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

                        animate: function( prop, speed, easing, callback ) {
                            var optall = jQuery.speed(speed, easing, callback);
                    
                            if ( jQuery.isEmptyObject( prop ) ) {
                                return this.each( optall.complete );
                    Severity: Major
                    Found in demo/rules/js/jquery.js - About 2 hrs to fix

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

                          val: function( value ) {
                              if ( !arguments.length ) {
                                  var elem = this[0];
                      
                                  if ( elem ) {
                      Severity: Major
                      Found in demo/rules/js/jquery.js - About 2 hrs to fix

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

                        Sizzle.filter = function( expr, set, inplace, not ) {
                            var match, anyFound,
                                old = expr,
                                result = [],
                                curLoop = set,
                        Severity: Major
                        Found in demo/rules/js/jquery.js - About 2 hrs to fix

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

                              init: function( selector, context ) {
                                  var match, elem, ret, doc;
                          
                                  // Handle $(""), $(null), or $(undefined)
                                  if ( !selector ) {
                          Severity: Major
                          Found in demo/rules/js/jquery.js - About 2 hrs to fix

                            Function liveHandler has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function liveHandler( event ) {
                                var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
                                    elems = [],
                                    selectors = [],
                                    events = jQuery.data( this, this.nodeType ? "events" : "__events__" );
                            Severity: Major
                            Found in demo/rules/js/jquery.js - About 2 hrs to fix

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

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

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

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

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

                                      jQuery.fn.offset = function( options ) {
                                          var elem = this[0];
                                  
                                          if ( options ) { 
                                              return this.each(function( i ) {
                                  Severity: Major
                                  Found in demo/rules/js/jquery.js - About 2 hrs to fix

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

                                        domManip: function( args, table, callback ) {
                                            var results, first, fragment, parent,
                                                value = args[0],
                                                scripts = [];
                                    
                                    
                                    Severity: Minor
                                    Found in demo/rules/js/jquery.js - About 1 hr to fix

                                      Function closest has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          closest: function( selectors, context ) {
                                              var ret = [], i, l, cur = this[0];
                                      
                                              if ( jQuery.isArray( selectors ) ) {
                                                  var match, selector,
                                      Severity: Minor
                                      Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                CHILD: function( elem, match ) {
                                                    var type = match[1],
                                                        node = elem;
                                        
                                                    switch ( type ) {
                                        Severity: Minor
                                        Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                  var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) {
                                                      // The request was aborted
                                                      if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) {
                                                          // Opera doesn't call onreadystatechange before this point
                                                          // so we simulate the call
                                          Severity: Minor
                                          Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
                                                    var type, i = 0, match, namespaces, preType,
                                                        selector = origSelector || this.selector,
                                                        context = origSelector ? this : jQuery( this.context );
                                                    
                                            Severity: Minor
                                            Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                  handle: function( event ) {
                                                      var all, handlers, namespaces, namespace_re, events,
                                                          namespace_sort = [],
                                                          args = jQuery.makeArray( arguments );
                                              
                                              
                                              Severity: Minor
                                              Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                    step: function( gotoEnd ) {
                                                        var t = jQuery.now(), done = true;
                                                
                                                        if ( gotoEnd || t >= this.options.duration + this.startTime ) {
                                                            this.now = this.end;
                                                Severity: Minor
                                                Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                      load: function( url, params, callback ) {
                                                          if ( typeof url !== "string" && _load ) {
                                                              return _load.apply( this, arguments );
                                                  
                                                          // Don't do a request if no elements are being requested
                                                  Severity: Minor
                                                  Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                    jQuery.extend = jQuery.fn.extend = function() {
                                                         var options, name, src, copy, copyIsArray, clone,
                                                            target = arguments[0] || {},
                                                            i = 1,
                                                            length = arguments.length,
                                                    Severity: Minor
                                                    Found in demo/rules/js/jquery.js - About 1 hr to fix

                                                      Function data has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                          data: function( key, value ) {
                                                              var data = null;
                                                      
                                                              if ( typeof key === "undefined" ) {
                                                                  if ( this.length ) {
                                                      Severity: Minor
                                                      Found in demo/rules/js/jquery.js - About 1 hr to fix

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

                                                            fix: function( event ) {
                                                                if ( event[ jQuery.expando ] ) {
                                                                    return event;
                                                                }
                                                        
                                                        
                                                        Severity: Minor
                                                        Found in demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 1 hr to fix

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

                                                                data: function( elem, name, data ) {
                                                                    if ( !jQuery.acceptData( elem ) ) {
                                                                        return;
                                                                    }
                                                            
                                                            
                                                            Severity: Minor
                                                            Found in demo/rules/js/jquery.js - About 1 hr to fix

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

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

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

                                                                    removeData: function( elem, name ) {
                                                                        if ( !jQuery.acceptData( elem ) ) {
                                                                            return;
                                                                        }
                                                                
                                                                
                                                                Severity: Minor
                                                                Found in demo/rules/js/jquery.js - About 1 hr to fix

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

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

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

                                                                        setOffset: function( elem, options, i ) {
                                                                            var position = jQuery.css( elem, "position" );
                                                                    
                                                                            // set position first, in-case top/left are set even on static elem
                                                                            if ( position === "static" ) {
                                                                    Severity: Minor
                                                                    Found in demo/rules/js/jquery.js - About 1 hr to fix

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

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

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

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

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

                                                                              cleanData: function( elems ) {
                                                                                  var data, id, cache = jQuery.cache,
                                                                                      special = jQuery.event.special,
                                                                                      deleteExpando = jQuery.support.deleteExpando;
                                                                                  
                                                                          Severity: Minor
                                                                          Found in demo/rules/js/jquery.js - About 1 hr to fix

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

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

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

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

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

                                                                                        ">": function( checkSet, part ) {
                                                                                            var elem,
                                                                                                isPartStr = typeof part === "string",
                                                                                                i = 0,
                                                                                                l = checkSet.length;
                                                                                Severity: Minor
                                                                                Found in demo/rules/js/jquery.js - About 1 hr to fix

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

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

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

                                                                                        toggleClass: function( value, stateVal ) {
                                                                                            var type = typeof value,
                                                                                                isBool = typeof stateVal === "boolean";
                                                                                    
                                                                                            if ( jQuery.isFunction( value ) ) {
                                                                                    Severity: Minor
                                                                                    Found in demo/rules/js/jquery.js - About 1 hr to fix

                                                                                      Consider simplifying this complex logical expression.
                                                                                      Open

                                                                                          if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
                                                                                              !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
                                                                                      
                                                                                              cacheable = true;
                                                                                              cacheresults = jQuery.fragments[ args[0] ];
                                                                                      Severity: Major
                                                                                      Found in demo/rules/js/jquery.js - About 1 hr 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 demo/rules/js/jquery.js - About 45 mins to fix

                                                                                          Avoid deeply nested control flow statements.
                                                                                          Open

                                                                                                          } else if ( copy !== undefined ) {
                                                                                                              target[ name ] = copy;
                                                                                                          }
                                                                                          Severity: Major
                                                                                          Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                                    if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && 
                                                                                                                            (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
                                                                                            
                                                                                                                        // Get the specific value for the option
                                                                                                                        value = jQuery(option).val();
                                                                                            Severity: Major
                                                                                            Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                                  if ( !inplace ) {
                                                                                                                      curLoop = result;
                                                                                                                  }
                                                                                              Severity: Major
                                                                                              Found in demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                                      if ( copyIsArray ) {
                                                                                                                          copyIsArray = false;
                                                                                                                          clone = src && jQuery.isArray(src) ? src : [];
                                                                                                  
                                                                                                                      } else {
                                                                                                  Severity: Major
                                                                                                  Found in demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 45 mins 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 demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                                for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                    if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
                                                                                                                                        setClass += " " + classNames[c];
                                                                                                                                    }
                                                                                                                                }
                                                                                                        Severity: Major
                                                                                                        Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                                  if ( ret === false ) {
                                                                                                                                      event.preventDefault();
                                                                                                                                      event.stopPropagation();
                                                                                                                                  }
                                                                                                          Severity: Major
                                                                                                          Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                                    if ( special[ type ] ) {
                                                                                                                                        jQuery.event.remove( elem, type );
                                                                                                            
                                                                                                                                    } else {
                                                                                                                                        jQuery.removeEvent( elem, type, data.handle );
                                                                                                            Severity: Major
                                                                                                            Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                      for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                          className = className.replace(" " + classNames[c] + " ", " ");
                                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in demo/rules/js/jquery.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 demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                            if ( ret[r] === ret[n] ) {
                                                                                                                                                ret.splice(n--, 1);
                                                                                                                                                break;
                                                                                                                                            }
                                                                                                                    Severity: Major
                                                                                                                    Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                              if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
                                                                                                                                                  ret.push({ selector: selector, elem: cur, level: level });
                                                                                                                                              }
                                                                                                                      Severity: Major
                                                                                                                      Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                                    if ( display === "inline" ) {
                                                                                                                                                        this.style.display = "inline-block";
                                                                                                                        
                                                                                                                                                    } else {
                                                                                                                                                        this.style.display = "inline";
                                                                                                                        Severity: Major
                                                                                                                        Found in demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                                    if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                                                                                                        tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                                                                                                                    }
                                                                                                                            Severity: Major
                                                                                                                            Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                                      if ( pos == null ) {
                                                                                                                                                          eventType.splice( j--, 1 );
                                                                                                                                                      }
                                                                                                                              Severity: Major
                                                                                                                              Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                                        if ( special.remove ) {
                                                                                                                                                            special.remove.call( elem, handleObj );
                                                                                                                                                        }
                                                                                                                                Severity: Major
                                                                                                                                Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                      if ( !anyFound ) {
                                                                                                                                                          return [];
                                                                                                                                                      }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                            if ( jQuery.isPlainObject( context ) ) {
                                                                                                                                                                selector = [ document.createElement( ret[1] ) ];
                                                                                                                                                                jQuery.fn.attr.call( selector, context, true );
                                                                                                                                    
                                                                                                                                                            } else {
                                                                                                                                    Severity: Major
                                                                                                                                    Found in demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 45 mins to fix

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

                                                                                                                                            access: function( elems, key, value, exec, fn, pass ) {
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                                  if ( elem.id !== match[2] ) {
                                                                                                                                                                      return rootjQuery.find( selector );
                                                                                                                                                                  }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in demo/rules/js/jquery.js - About 45 mins to fix

                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                            Open

                                                                                                                                                    if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                                                                                                                                                            Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
                                                                                                                                            
                                                                                                                                                        ret = Sizzle.find( parts.shift(), context, contextXML );
                                                                                                                                                        context = ret.expr ?
                                                                                                                                            Severity: Major
                                                                                                                                            Found in demo/rules/js/jquery.js - About 40 mins to fix

                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                              Open

                                                                                                                                              if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                                                  jQuery.expr.filters.hidden = function( elem ) {
                                                                                                                                                      var width = elem.offsetWidth,
                                                                                                                                                          height = elem.offsetHeight;
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Major
                                                                                                                                              Found in demo/rules/js/jquery.js - About 40 mins to fix

                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                Open

                                                                                                                                                            if ( (!special._default || special._default.call( elem, event ) === false) && 
                                                                                                                                                                !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
                                                                                                                                                
                                                                                                                                                                try {
                                                                                                                                                                    if ( target[ targetType ] ) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in demo/rules/js/jquery.js - About 40 mins to fix

                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                  Open

                                                                                                                                                          } else if ( typeof value === "string" && !rnocache.test( value ) &&
                                                                                                                                                              (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                                                                                                                                                              !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
                                                                                                                                                  
                                                                                                                                                              value = value.replace(rxhtmlTag, "<$1></$2>");
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in demo/rules/js/jquery.js - About 40 mins to fix

                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                    Open

                                                                                                                                                                    if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
                                                                                                                                                                        (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
                                                                                                                                                                        type === "select-multiple" ) {
                                                                                                                                                                        return testChange.call( this, e );
                                                                                                                                                                    }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in demo/rules/js/jquery.js - About 40 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 demo/rules/js/jquery.js - About 35 mins to fix

                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                        Open

                                                                                                                                                                return jQuery.makeArray( selector, this );
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                          Open

                                                                                                                                                                      return undefined;
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                            Open

                                                                                                                                                                        return elem[ name ];
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                              Open

                                                                                                                                                                              return siblingCheck( ap[i], bp[i] );
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                Open

                                                                                                                                                                                return jQuery.merge( this, selector );
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                  Open

                                                                                                                                                                          return { top: top, left: left };
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                    Open

                                                                                                                                                                            return attr === null ? undefined : attr;
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                      Open

                                                                                                                                                                                  return jQuery.isNaN( ret ) ? orig : ret;
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                        Open

                                                                                                                                                                                            return elem.getAttribute("value") === null ? "on" : elem.value;
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                          Open

                                                                                                                                                                                  return i === al ?
                                                                                                                                                                                      siblingCheck( a, bp[i], -1 ) :
                                                                                                                                                                                      siblingCheck( ap[i], b, 1 );
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                            Open

                                                                                                                                                                                                return this;
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                              Open

                                                                                                                                                                                                      return true;
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                Open

                                                                                                                                                                                                        return diff === 0;
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                                  return (context || rootjQuery).find( selector );
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                    Open

                                                                                                                                                                                                    return (elem.value || "").replace(rreturn, "");
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in demo/rules/js/jquery.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 demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                        Open

                                                                                                                                                                                                    return undefined;
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                          Open

                                                                                                                                                                                                      return this.css( type, typeof size === "string" ? size : size + "px" );
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                        return rootjQuery.find( selector );
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                              Open

                                                                                                                                                                                                              return jQuery( context ).find( selector );
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                            return rootjQuery.ready( selector );
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                              return elem.style.cssText;
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in demo/rules/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            return this.each(function(i) {
                                                                                                                                                                                                                var self = jQuery(this), val = value;
                                                                                                                                                                                                    
                                                                                                                                                                                                                if ( this.nodeType !== 1 ) {
                                                                                                                                                                                                                    return;
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in demo/rules/js/jquery.js - About 30 mins to fix

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

                                                                                                                                                                                                              "": function(checkSet, part, isXML){
                                                                                                                                                                                                                  var nodeCheck,
                                                                                                                                                                                                                      doneName = done++,
                                                                                                                                                                                                                      checkFn = dirCheck;
                                                                                                                                                                                                      
                                                                                                                                                                                                      
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 3425..3437

                                                                                                                                                                                                      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 97.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              "~": function( checkSet, part, isXML ) {
                                                                                                                                                                                                                  var nodeCheck,
                                                                                                                                                                                                                      doneName = done++,
                                                                                                                                                                                                                      checkFn = dirCheck;
                                                                                                                                                                                                      
                                                                                                                                                                                                      
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 3411..3423

                                                                                                                                                                                                      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 97.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              if ( jQuery.isFunction(value) ) {
                                                                                                                                                                                                                  return this.each(function(i) {
                                                                                                                                                                                                                      var self = jQuery(this);
                                                                                                                                                                                                                      self.removeClass( value.call(this, i, self.attr("class")) );
                                                                                                                                                                                                                  });
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 1465..1470

                                                                                                                                                                                                      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 72.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              if ( jQuery.isFunction(value) ) {
                                                                                                                                                                                                                  return this.each(function(i) {
                                                                                                                                                                                                                      var self = jQuery(this);
                                                                                                                                                                                                                      self.addClass( value.call(this, i, self.attr("class")) );
                                                                                                                                                                                                                  });
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 1501..1506

                                                                                                                                                                                                      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 72.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              if ( jQuery.isFunction(text) ) {
                                                                                                                                                                                                                  return this.each(function(i) {
                                                                                                                                                                                                                      var self = jQuery( this );
                                                                                                                                                                                                      
                                                                                                                                                                                                                      self.text( text.call(this, i, self.text()) );
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 7142..7147

                                                                                                                                                                                                      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 71.

                                                                                                                                                                                                      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 && doc.clientTop  || body && body.clientTop  || 0);
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 2318..2318

                                                                                                                                                                                                      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 71.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              if ( jQuery.isFunction( size ) ) {
                                                                                                                                                                                                                  return this.each(function( i ) {
                                                                                                                                                                                                                      var self = jQuery( this );
                                                                                                                                                                                                                      self[ type ]( size.call( this, i, self[ type ]() ) );
                                                                                                                                                                                                                  });
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 4656..4662

                                                                                                                                                                                                      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 71.

                                                                                                                                                                                                      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 && doc.clientLeft || body && body.clientLeft || 0);
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 2319..2319

                                                                                                                                                                                                      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 71.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                  return this.each(function(i) {
                                                                                                                                                                                                                      jQuery(this).wrapInner( html.call(this, i) );
                                                                                                                                                                                                                  });
                                                                                                                                                                                                              }
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 4672..4676

                                                                                                                                                                                                      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 56.

                                                                                                                                                                                                      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

                                                                                                                                                                                                              if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                  return this.each(function(i) {
                                                                                                                                                                                                                      jQuery(this).wrapAll( html.call(this, i) );
                                                                                                                                                                                                                  });
                                                                                                                                                                                                              }
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in demo/rules/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                      demo/rules/js/jquery.js on lines 4701..4705

                                                                                                                                                                                                      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 56.

                                                                                                                                                                                                      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