adobe/brackets

View on GitHub
src/thirdparty/jquery-2.1.3.js

Summary

Maintainability
F
2 mos
Test Coverage

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

/*!
 * jQuery JavaScript Library v2.1.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in src/thirdparty/jquery-2.1.3.js - About 2 wks to fix

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

    (function( window ) {
    
    var i,
        support,
        Expr,
    Severity: Major
    Found in src/thirdparty/jquery-2.1.3.js - About 6 days to fix

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

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;
      Severity: Major
      Found in src/thirdparty/jquery-2.1.3.js - About 1 day to fix

        Function setDocument has 218 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        setDocument = Sizzle.setDocument = function( node ) {
            var hasCompare, parent,
                doc = node ? node.ownerDocument || node : preferredDoc;
        
            // If no document and documentElement is available, return
        Severity: Major
        Found in src/thirdparty/jquery-2.1.3.js - About 1 day to fix

          Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          jQuery.Callbacks = function( options ) {
          
              // Convert options from String-formatted to Object-formatted if needed
              // (we check in cache first)
              options = typeof options === "string" ?
          Severity: Major
          Found in src/thirdparty/jquery-2.1.3.js - About 5 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                        if ( event.pageX == null && original.clientX != null ) {
                            eventDoc = event.target.ownerDocument || document;
                            doc = eventDoc.documentElement;
                            body = eventDoc.body;
            
            
            Severity: Critical
            Found in src/thirdparty/jquery-2.1.3.js - About 5 hrs to fix

              Function defaultPrefilter has 99 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function defaultPrefilter( elem, props, opts ) {
                  /* jshint validthis: true */
                  var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                      anim = this,
                      orig = {},
              Severity: Major
              Found in src/thirdparty/jquery-2.1.3.js - About 3 hrs to fix

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

                    trigger: function( event, data, elem, onlyHandlers ) {
                
                        var i, cur, tmp, bubbleType, ontype, handle, special,
                            eventPath = [ elem || document ],
                            type = hasOwn.call( event, "type" ) ? event.type : event,
                Severity: Major
                Found in src/thirdparty/jquery-2.1.3.js - About 3 hrs to fix

                  Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function Animation( elem, properties, options ) {
                      var result,
                          stopped,
                          index = 0,
                          length = animationPrefilters.length,
                  Severity: Major
                  Found in src/thirdparty/jquery-2.1.3.js - About 3 hrs to fix

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

                    function Sizzle( selector, context, results, seed ) {
                        var match, elem, m, nodeType,
                            // QSA vars
                            i, groups, old, nid, newContext, newSelector;
                    
                    
                    Severity: Major
                    Found in src/thirdparty/jquery-2.1.3.js - About 3 hrs to fix

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

                          add: function( elem, types, handler, data, selector ) {
                      
                              var handleObjIn, eventHandle, tmp,
                                  events, t, handleObj,
                                  special, handlers, type, namespaces, origType,
                      Severity: Major
                      Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                        Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                            var bySet = setMatchers.length > 0,
                                byElement = elementMatchers.length > 0,
                                superMatcher = function( seed, context, xml, results, outermost ) {
                                    var elem, j, matcher,
                        Severity: Major
                        Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                  function done( status, nativeStatusText, responses, headers ) {
                                      var isSuccess, success, error, response, modified,
                                          statusText = nativeStatusText;
                          
                                      // Called once
                          Severity: Major
                          Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                            Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                if ( postFilter && !postFilter[ expando ] ) {
                                    postFilter = setMatcher( postFilter );
                                }
                                if ( postFinder && !postFinder[ expando ] ) {
                            Severity: Major
                            Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                      superMatcher = function( seed, context, xml, results, outermost ) {
                                          var elem, j, matcher,
                                              matchedCount = 0,
                                              i = "0",
                                              unmatched = seed && [],
                              Severity: Major
                              Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                        "CHILD": function( type, what, argument, first, last ) {
                                            var simple = type.slice( 0, 3 ) !== "nth",
                                                forward = type.slice( -4 ) !== "last",
                                                ofType = what === "of-type";
                                
                                
                                Severity: Major
                                Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                  Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      Deferred: function( func ) {
                                          var tuples = [
                                                  // action, add listener, listener list, final state
                                                  [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                                  [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                                  Severity: Major
                                  Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                            if ( forward && useCache ) {
                                                                // Seek `elem` from a previously-cached index
                                                                outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                                cache = outerCache[ type ] || [];
                                                                nodeIndex = cache[0] === dirruns && cache[1];
                                    Severity: Critical
                                    Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                          domManip: function( args, callback ) {
                                      
                                              // Flatten any nested arrays
                                              args = concat.apply( [], args );
                                      
                                      
                                      Severity: Major
                                      Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                            init = jQuery.fn.init = function( selector, context ) {
                                                var match, elem;
                                        
                                                // HANDLE: $(""), $(null), $(undefined), $(false)
                                                if ( !selector ) {
                                        Severity: Major
                                        Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                          Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                              var conv2, current, conv, tmp, prev,
                                                  converters = {},
                                                  // Work with a copy of dataTypes in case we need to modify it for conversion
                                                  dataTypes = s.dataTypes.slice();
                                          Severity: Major
                                          Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                                data: function( key, value ) {
                                                    var i, name, data,
                                                        elem = this[ 0 ],
                                                        attrs = elem && elem.attributes;
                                            
                                            
                                            Severity: Major
                                            Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                              Function send has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                          send: function( headers, complete ) {
                                                              var i,
                                                                  xhr = options.xhr(),
                                                                  id = ++xhrId;
                                              
                                              
                                              Severity: Major
                                              Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                                Consider simplifying this complex logical expression.
                                                Open

                                                                if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                    ( !handler || handler.guid === handleObj.guid ) &&
                                                                    ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                                    ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                    handlers.splice( j, 1 );
                                                Severity: Critical
                                                Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

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

                                                      remove: function( elem, types, handler, selector, mappedTypes ) {
                                                  
                                                          var j, origCount, tmp,
                                                              events, t, handleObj,
                                                              special, handlers, type, namespaces, origType,
                                                  Severity: Minor
                                                  Found in src/thirdparty/jquery-2.1.3.js - About 2 hrs to fix

                                                    Function buildFragment has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        buildFragment: function( elems, context, scripts, selection ) {
                                                            var elem, tmp, tag, wrap, contains, j,
                                                                fragment = context.createDocumentFragment(),
                                                                nodes = [],
                                                                i = 0,
                                                    Severity: Minor
                                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                      select = Sizzle.select = function( selector, context, results, seed ) {
                                                          var i, tokens, token, type, find,
                                                              compiled = typeof selector === "function" && selector,
                                                              match = !seed && tokenize( (selector = compiled.selector || selector) );
                                                      
                                                      
                                                      Severity: Minor
                                                      Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                        tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                                                            var matched, match, tokens, type,
                                                                soFar, groups, preFilters,
                                                                cached = tokenCache[ selector + " " ];
                                                        
                                                        
                                                        Severity: Minor
                                                        Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                          function matcherFromTokens( tokens ) {
                                                              var checkContext, matcher, j,
                                                                  len = tokens.length,
                                                                  leadingRelative = Expr.relative[ tokens[0].type ],
                                                                  implicitRelative = leadingRelative || Expr.relative[" "],
                                                          Severity: Minor
                                                          Found in src/thirdparty/jquery-2.1.3.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 src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                  on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                      var origFn, type;
                                                              
                                                                      // Types can be a map of types/handlers
                                                                      if ( typeof types === "object" ) {
                                                              Severity: Minor
                                                              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                    stop: function( type, clearQueue, gotoEnd ) {
                                                                        var stopQueue = function( hooks ) {
                                                                            var stop = hooks.stop;
                                                                            delete hooks.stop;
                                                                            stop( gotoEnd );
                                                                Severity: Minor
                                                                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                      val: function( value ) {
                                                                          var hooks, ret, isFunction,
                                                                              elem = this[0];
                                                                  
                                                                          if ( !arguments.length ) {
                                                                  Severity: Minor
                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                    function addCombinator( matcher, combinator, base ) {
                                                                        var dir = combinator.dir,
                                                                            checkNonElements = base && dir === "parentNode",
                                                                            doneName = done++;
                                                                    
                                                                    
                                                                    Severity: Minor
                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                          each: function( obj, callback, args ) {
                                                                              var value,
                                                                                  i = 0,
                                                                                  length = obj.length,
                                                                                  isArray = isArraylike( obj );
                                                                      Severity: Minor
                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                        function ajaxHandleResponses( s, jqXHR, responses ) {
                                                                        
                                                                            var ct, type, finalDataType, firstDataType,
                                                                                contents = s.contents,
                                                                                dataTypes = s.dataTypes;
                                                                        Severity: Minor
                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                              when: function( subordinate /* , ..., subordinateN */ ) {
                                                                                  var i = 0,
                                                                                      resolveValues = slice.call( arguments ),
                                                                                      length = resolveValues.length,
                                                                          
                                                                          
                                                                          Severity: Minor
                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                            function showHide( elements, show ) {
                                                                                var display, elem, hidden,
                                                                                    values = [],
                                                                                    index = 0,
                                                                                    length = elements.length;
                                                                            Severity: Minor
                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                              var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                                                                  var i = 0,
                                                                                      len = elems.length,
                                                                                      bulk = key == null;
                                                                              
                                                                              
                                                                              Severity: Minor
                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                    dispatch: function( event ) {
                                                                                
                                                                                        // Make a writable jQuery.Event from the native event object
                                                                                        event = jQuery.event.fix( event );
                                                                                
                                                                                
                                                                                Severity: Minor
                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                      setOffset: function( elem, options, i ) {
                                                                                          var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                                                                              position = jQuery.css( elem, "position" ),
                                                                                              curElem = jQuery( elem ),
                                                                                              props = {};
                                                                                  Severity: Minor
                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                                                                    Consider simplifying this complex logical expression.
                                                                                    Open

                                                                                                if ( start && start[ 3 ] !== unit ) {
                                                                                                    // Trust units reported by jQuery.css
                                                                                                    unit = unit || start[ 3 ];
                                                                                    
                                                                                                    // Make sure we update the tween properties later on
                                                                                    Severity: Critical
                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                                                                      Consider simplifying this complex logical expression.
                                                                                      Open

                                                                                                              } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                                                                                                  diff = cache[1];
                                                                                      
                                                                                                              // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                                                                                              } else {
                                                                                      Severity: Critical
                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

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

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

                                                                                              removeClass: function( value ) {
                                                                                                  var classes, elem, cur, clazz, j, finalValue,
                                                                                                      proceed = arguments.length === 0 || typeof value === "string" && value,
                                                                                                      i = 0,
                                                                                                      len = this.length;
                                                                                          Severity: Minor
                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                addClass: function( value ) {
                                                                                                    var classes, elem, cur, clazz, j, finalValue,
                                                                                                        proceed = typeof value === "string" && value,
                                                                                                        i = 0,
                                                                                                        len = this.length;
                                                                                            Severity: Minor
                                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                              jQuery.fn.load = function( url, params, callback ) {
                                                                                                  if ( typeof url !== "string" && _load ) {
                                                                                                      return _load.apply( this, arguments );
                                                                                                  }
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                    handlers: function( event, handlers ) {
                                                                                                        var i, matches, sel, handleObj,
                                                                                                            handlerQueue = [],
                                                                                                            delegateCount = handlers.delegateCount,
                                                                                                            cur = event.target;
                                                                                                Severity: Minor
                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                      attr: function( elem, name, value ) {
                                                                                                          var hooks, ret,
                                                                                                              nType = elem.nodeType;
                                                                                                  
                                                                                                          // don't get/set attributes on text, comment and attribute nodes
                                                                                                  Severity: Minor
                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                        toggleClass: function( value, stateVal ) {
                                                                                                            var type = typeof value;
                                                                                                    
                                                                                                            if ( typeof stateVal === "boolean" && type === "string" ) {
                                                                                                                return stateVal ? this.addClass( value ) : this.removeClass( value );
                                                                                                    Severity: Minor
                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                          finish: function( type ) {
                                                                                                              if ( type !== false ) {
                                                                                                                  type = type || "fx";
                                                                                                              }
                                                                                                              return this.each(function() {
                                                                                                      Severity: Minor
                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                            clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                                                                                                var i, l, srcElements, destElements,
                                                                                                                    clone = elem.cloneNode( true ),
                                                                                                                    inPage = jQuery.contains( elem.ownerDocument, elem );
                                                                                                        
                                                                                                        
                                                                                                        Severity: Minor
                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                              fix: function( event ) {
                                                                                                                  if ( event[ jQuery.expando ] ) {
                                                                                                                      return event;
                                                                                                                  }
                                                                                                          
                                                                                                          
                                                                                                          Severity: Minor
                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                            function propFilter( props, specialEasing ) {
                                                                                                                var index, name, easing, value, hooks;
                                                                                                            
                                                                                                                // camelCase, specialEasing and expand cssHook pass
                                                                                                                for ( index in props ) {
                                                                                                            Severity: Minor
                                                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                                  off: function( types, selector, fn ) {
                                                                                                                      var handleObj, type;
                                                                                                                      if ( types && types.preventDefault && types.handleObj ) {
                                                                                                                          // ( event )  dispatched jQuery.Event
                                                                                                                          handleObj = types.handleObj;
                                                                                                              Severity: Minor
                                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                                        "*": [ function( prop, value ) {
                                                                                                                            var tween = this.createTween( prop, value ),
                                                                                                                                target = tween.cur(),
                                                                                                                                parts = rfxnum.exec( value ),
                                                                                                                                unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                                                                                                                Severity: Minor
                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                                      offset: function( options ) {
                                                                                                                          if ( arguments.length ) {
                                                                                                                              return options === undefined ?
                                                                                                                                  this :
                                                                                                                                  this.each(function( i ) {
                                                                                                                  Severity: Minor
                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                    Open

                                                                                                                            if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                                                                                                    support.getById && context.nodeType === 9 && documentIsHTML &&
                                                                                                                                    Expr.relative[ tokens[1].type ] ) {
                                                                                                                    
                                                                                                                                context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                                                                                                    Severity: Major
                                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 1 hr to fix

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

                                                                                                                      var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                                                                                                      Severity: Major
                                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 50 mins to fix

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

                                                                                                                            init: function( elem, options, prop, end, easing, unit ) {
                                                                                                                        Severity: Minor
                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

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

                                                                                                                          function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                                                                                                          Severity: Minor
                                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

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

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                                      if ( matches[ sel ] === undefined ) {
                                                                                                                                                          matches[ sel ] = handleObj.needsContext ?
                                                                                                                                                              jQuery( sel, this ).index( cur ) >= 0 :
                                                                                                                                                              jQuery.find( sel, this, null, [ cur ] ).length;
                                                                                                                                                      }
                                                                                                                              Severity: Major
                                                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                                        while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                                                                                                                                            cur = cur.replace( " " + clazz + " ", " " );
                                                                                                                                                        }
                                                                                                                                Severity: Major
                                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                                  if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                                                                                                                                                                      // Cache the index of each encountered element
                                                                                                                                                                      if ( useCache ) {
                                                                                                                                                                          (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                                                                                                                                                                      }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                                if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                                                                                                                                                    return true;
                                                                                                                                                                }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                                          if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                                                                                                                                              return false;
                                                                                                                                                                          }
                                                                                                                                      Severity: Major
                                                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                            if ( Expr.relative[ tokens[j].type ] ) {
                                                                                                                                                                break;
                                                                                                                                                            }
                                                                                                                                        Severity: Major
                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                              if ( !selector ) {
                                                                                                                                                                  push.apply( results, seed );
                                                                                                                                                                  return results;
                                                                                                                                                              }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                for ( conv2 in converters ) {
                                                                                                                                            
                                                                                                                                                                    // If conv2 outputs current
                                                                                                                                                                    tmp = conv2.split( " " );
                                                                                                                                                                    if ( tmp[ 1 ] === current ) {
                                                                                                                                            Severity: Major
                                                                                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                      for ( match in context ) {
                                                                                                                                                                          // Properties of context are called as methods if possible
                                                                                                                                                                          if ( jQuery.isFunction( this[ match ] ) ) {
                                                                                                                                                                              this[ match ]( context[ match ] );
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Major
                                                                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                        for ( type in data.events ) {
                                                                                                                                                                            if ( special[ type ] ) {
                                                                                                                                                                                jQuery.event.remove( elem, type );
                                                                                                                                                
                                                                                                                                                                            // This is a shortcut to avoid jQuery.event.remove's overhead
                                                                                                                                                Severity: Major
                                                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                      if ( conv && s[ "throws" ] ) {
                                                                                                                                                                          response = conv( response );
                                                                                                                                                                      } else {
                                                                                                                                                                          try {
                                                                                                                                                                              response = conv( response );
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                                if ( !(unmatched[i] || setMatched[i]) ) {
                                                                                                                                                                                    setMatched[i] = pop.call( results );
                                                                                                                                                                                }
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

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

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                if ( matches[ sel ] ) {
                                                                                                                                                                                    matches.push( handleObj );
                                                                                                                                                                                }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                  if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                                                                                                                                                      cur += clazz + " ";
                                                                                                                                                                                  }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                                                                                                                                                                    contains( context, elem ) && elem.id === m ) {
                                                                                                                                                                                    results.push( elem );
                                                                                                                                                                                    return results;
                                                                                                                                                                                }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in src/thirdparty/jquery-2.1.3.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 src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                        if ( hasScripts ) {
                                                                                                                                                                                            // Support: QtWebKit
                                                                                                                                                                                            // jQuery.merge because push.apply(_, arraylike) throws
                                                                                                                                                                                            jQuery.merge( scripts, getAll( node, "script" ) );
                                                                                                                                                                                        }
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                          if ( rscriptType.test( node.type || "" ) &&
                                                                                                                                                                                              !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
                                                                                                                                                                  
                                                                                                                                                                                              if ( node.src ) {
                                                                                                                                                                                                  // Optional AJAX dependency, but won't run scripts if not present
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                        if ( elem && elem.parentNode ) {
                                                                                                                                                                                            // Handle the case where IE, Opera, and Webkit return items
                                                                                                                                                                                            // by name instead of ID
                                                                                                                                                                                            if ( elem.id === m ) {
                                                                                                                                                                                                results.push( elem );
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                              if ( (elem = matcherOut[i]) ) {
                                                                                                                                                                                                  // Restore matcherIn since elem is not yet a final match
                                                                                                                                                                                                  temp.push( (matcherIn[i] = elem) );
                                                                                                                                                                                              }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                if ( attrs[ i ] ) {
                                                                                                                                                                                                    name = attrs[ i ].name;
                                                                                                                                                                                                    if ( name.indexOf( "data-" ) === 0 ) {
                                                                                                                                                                                                        name = jQuery.camelCase( name.slice(5) );
                                                                                                                                                                                                        dataAttr( elem, name, data[ name ] );
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 45 mins to fix

                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                          Open

                                                                                                                                                                                  if ( s.crossDomain == null ) {
                                                                                                                                                                                      parts = rurl.exec( s.url.toLowerCase() );
                                                                                                                                                                                      s.crossDomain = !!( parts &&
                                                                                                                                                                                          ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                                                                                                                                                                              ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 40 mins to fix

                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                            Open

                                                                                                                                                                                        if ( matcher[ expando ] ) {
                                                                                                                                                                                            // Find the next relative operator (if any) for proper handling
                                                                                                                                                                                            j = ++i;
                                                                                                                                                                                            for ( ; j < len; j++ ) {
                                                                                                                                                                                                if ( Expr.relative[ tokens[j].type ] ) {
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 40 mins to fix

                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                              Open

                                                                                                                                                                                  if ( support.matchesSelector && documentIsHTML &&
                                                                                                                                                                                      ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                                                                                                                                                                      ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                                                                                                                                                              
                                                                                                                                                                                      try {
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 40 mins to fix

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

                                                                                                                                                                                    on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                  function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                            superMatcher = function( seed, context, xml, results, outermost ) {
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                      function condense( unmatched, map, filter, context, xml ) {
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                            add: function( elem, types, handler, data, selector ) {
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                          function Tween( elem, options, prop, end, easing ) {
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                                    "CHILD": function( type, what, argument, first, last ) {
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

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

                                                                                                                                                                                                  remove: function( elem, types, handler, selector, mappedTypes ) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 35 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                        return compare & 4 ? -1 : 1;
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                                  return results;
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                return sortInput ?
                                                                                                                                                                                                                    ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
                                                                                                                                                                                                                    0;
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                  return ret;
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                        return this.constructor( context ).find( selector );
                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                              return results;
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                        return this;
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                          return typeof rootjQuery.ready !== "undefined" ?
                                                                                                                                                                                                                              rootjQuery.ready( selector ) :
                                                                                                                                                                                                                              // Execute immediately if ready is not present
                                                                                                                                                                                                                              selector( jQuery );
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                            return ret == null ?
                                                                                                                                                                                                                                undefined :
                                                                                                                                                                                                                                ret;
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                  return results;
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

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

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          return select( selector.replace( rtrim, "$1" ), context, results, seed );
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in src/thirdparty/jquery-2.1.3.js - About 30 mins to fix

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

                                                                                                                                                                                                                            for ( ; i < length; i++ ) {
                                                                                                                                                                                                                                // Only deal with non-null/undefined values
                                                                                                                                                                                                                                if ( (options = arguments[ i ]) != null ) {
                                                                                                                                                                                                                                    // Extend the base object
                                                                                                                                                                                                                                    for ( name in options ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 350..382

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

                                                                                                                                                                                                                        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 ( event.pageX == null && original.clientX != null ) {
                                                                                                                                                                                                                                        eventDoc = event.target.ownerDocument || document;
                                                                                                                                                                                                                                        doc = eventDoc.documentElement;
                                                                                                                                                                                                                                        body = eventDoc.body;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 7 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3380..3387

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( !transport ) {
                                                                                                                                                                                                                                    done( -1, "No Transport" );
                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                    jqXHR.readyState = 1;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7702..7729

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

                                                                                                                                                                                                                        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 ( !arguments.length ) {
                                                                                                                                                                                                                                    if ( elem ) {
                                                                                                                                                                                                                                        hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2375..2393

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            wrapInner: function( html ) {
                                                                                                                                                                                                                                if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                                    return this.each(function( i ) {
                                                                                                                                                                                                                                        jQuery( this ).wrapInner( html.call(this, i) );
                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 5808..5826

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            queue: function( elem, type, data ) {
                                                                                                                                                                                                                                var queue;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                if ( elem ) {
                                                                                                                                                                                                                                    type = ( type || "fx" ) + "queue";
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2082..2098

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            simulate: function( type, elem, event, bubble ) {
                                                                                                                                                                                                                                // Piggyback on a donor event to simulate a different one.
                                                                                                                                                                                                                                // Fake originalEvent to avoid donor's stopPropagation, but if the
                                                                                                                                                                                                                                // simulated event prevents default then we do the same on the donor.
                                                                                                                                                                                                                                var e = jQuery.extend(
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3474..3494

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            if ( dataTypes[ 0 ] in responses ) {
                                                                                                                                                                                                                                finalDataType = dataTypes[ 0 ];
                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                // Try convertible dataTypes
                                                                                                                                                                                                                                for ( type in responses ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7855..7870

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                        jQuery.each( [ "get", "post" ], function( i, method ) {
                                                                                                                                                                                                                            jQuery[ method ] = function( url, data, callback, type ) {
                                                                                                                                                                                                                                // Shift arguments if data argument was omitted
                                                                                                                                                                                                                                if ( jQuery.isFunction( data ) ) {
                                                                                                                                                                                                                                    type = type || callback;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7236..7253

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( data == null && fn == null ) {
                                                                                                                                                                                                                                    // ( types, fn )
                                                                                                                                                                                                                                    fn = selector;
                                                                                                                                                                                                                                    data = selector = undefined;
                                                                                                                                                                                                                                } else if ( fn == null ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3773..3788

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                        jQuery.fn.delay = function( time, type ) {
                                                                                                                                                                                                                            time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
                                                                                                                                                                                                                            type = type || "fx";
                                                                                                                                                                                                                        
                                                                                                                                                                                                                            return this.queue( type, function( next, hooks ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2163..2173

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                jqXHR.setRequestHeader(
                                                                                                                                                                                                                                    "Accept",
                                                                                                                                                                                                                                    s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
                                                                                                                                                                                                                                        s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
                                                                                                                                                                                                                                        s.accepts[ "*" ]
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7673..7678

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                                                                                                                                                                                                                                complete: fn || !fn && easing ||
                                                                                                                                                                                                                                    jQuery.isFunction( speed ) && speed,
                                                                                                                                                                                                                                duration: speed,
                                                                                                                                                                                                                                easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8728..8733

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
                                                                                                                                                                                                                                opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8735..8736

                                                                                                                                                                                                                        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 ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                            // Don't re-trigger an onFOO event when we call its FOO() method
                                                                                                                                                                                                                                            tmp = elem[ ontype ];
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3230..3247

                                                                                                                                                                                                                        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

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

                                                                                                                                                                                                                                    if ( val == null ) {
                                                                                                                                                                                                                                        val = "";
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                    } else if ( typeof val === "number" ) {
                                                                                                                                                                                                                                        val += "";
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2411..2419

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

                                                                                                                                                                                                                        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 ( one === 1 ) {
                                                                                                                                                                                                                                    origFn = fn;
                                                                                                                                                                                                                                    fn = function( event ) {
                                                                                                                                                                                                                                        // Can use an empty set, since event contains the info
                                                                                                                                                                                                                                        jQuery().off( event );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3795..3804

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

                                                                                                                                                                                                                        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 ( events ) {
                                                                                                                                                                                                                                    delete pdataCur.handle;
                                                                                                                                                                                                                                    pdataCur.events = {};
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                    for ( type in events ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6110..6119

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

                                                                                                                                                                                                                        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 ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                                                                                                                                                                                            ( !handler || handler.guid === handleObj.guid ) &&
                                                                                                                                                                                                                                            ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                                                                                                                                                                                                            ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                                                                                                                                                                                            handlers.splice( j, 1 );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3057..3069

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

                                                                                                                                                                                                                        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 ( state === 2 ) {
                                                                                                                                                                                                                                                if ( !responseHeaders ) {
                                                                                                                                                                                                                                                    responseHeaders = {};
                                                                                                                                                                                                                                                    while ( (match = rheaders.exec( responseHeadersString )) ) {
                                                                                                                                                                                                                                                        responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7420..7428

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            keyHooks: {
                                                                                                                                                                                                                                props: "char charCode key keyCode".split(" "),
                                                                                                                                                                                                                                filter: function( event, original ) {
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                    // Add which for key events
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3359..3370

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

                                                                                                                                                                                                                        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 ( !related || (related !== target && !jQuery.contains( target, related )) ) {
                                                                                                                                                                                                                                        event.type = handleObj.origType;
                                                                                                                                                                                                                                        ret = handleObj.handler.apply( this, arguments );
                                                                                                                                                                                                                                        event.type = fix;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3614..3618

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            unwrap: function() {
                                                                                                                                                                                                                                return this.parent().each(function() {
                                                                                                                                                                                                                                    if ( !jQuery.nodeName( this, "body" ) ) {
                                                                                                                                                                                                                                        jQuery( this ).replaceWith( this.childNodes );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 5836..5842

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            clone: function( dataAndEvents, deepDataAndEvents ) {
                                                                                                                                                                                                                                dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
                                                                                                                                                                                                                                deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                return this.map(function() {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 5918..5925

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            sibling: function( n, elem ) {
                                                                                                                                                                                                                                var matched = [];
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                for ( ; n; n = n.nextSibling ) {
                                                                                                                                                                                                                                    if ( n.nodeType === 1 && n !== elem ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 5669..5679

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            wrap: function( html ) {
                                                                                                                                                                                                                                var isFunction = jQuery.isFunction( html );
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                return this.each(function( i ) {
                                                                                                                                                                                                                                    jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 5828..5834

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

                                                                                                                                                                                                                        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 ( attrs[ i ] ) {
                                                                                                                                                                                                                                                    name = attrs[ i ].name;
                                                                                                                                                                                                                                                    if ( name.indexOf( "data-" ) === 0 ) {
                                                                                                                                                                                                                                                        name = jQuery.camelCase( name.slice(5) );
                                                                                                                                                                                                                                                        dataAttr( elem, name, data[ name ] );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 1924..1932

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            for ( ; i < timers.length; i++ ) {
                                                                                                                                                                                                                                timer = timers[ i ];
                                                                                                                                                                                                                                // Checks the timer has not already been removed
                                                                                                                                                                                                                                if ( !timer() && timers[ i ] === timer ) {
                                                                                                                                                                                                                                    timers.splice( i--, 1 );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8954..8960

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                        jQuery.ajaxSetup({
                                                                                                                                                                                                                            accepts: {
                                                                                                                                                                                                                                script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
                                                                                                                                                                                                                            },
                                                                                                                                                                                                                            contents: {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8050..8063

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                        jQuery.noConflict = function( deep ) {
                                                                                                                                                                                                                            if ( window.$ === jQuery ) {
                                                                                                                                                                                                                                window.$ = _$;
                                                                                                                                                                                                                            }
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 389..399

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    if ( special.add ) {
                                                                                                                                                                                                                                        special.add.call( elem, handleObj );
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        if ( !handleObj.handler.guid ) {
                                                                                                                                                                                                                                            handleObj.handler.guid = handler.guid;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2996..3002

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( s.data && s.processData && typeof s.data !== "string" ) {
                                                                                                                                                                                                                                    s.data = jQuery.param( s.data, s.traditional );
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7605..7607

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

                                                                                                                                                                                                                        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 ( !event.which && button !== undefined ) {
                                                                                                                                                                                                                                        event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3396..3398

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            jQuery.valHooks[ this ] = {
                                                                                                                                                                                                                                set: function( elem, value ) {
                                                                                                                                                                                                                                    if ( jQuery.isArray( value ) ) {
                                                                                                                                                                                                                                        return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2860..2866

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                    return this.each(function( i ) {
                                                                                                                                                                                                                                        jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2325..2329

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            while ( dataTypes[ 0 ] === "*" ) {
                                                                                                                                                                                                                                dataTypes.shift();
                                                                                                                                                                                                                                if ( ct === undefined ) {
                                                                                                                                                                                                                                    ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7837..7842

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                        jQuery.expr.filters.animated = function( elem ) {
                                                                                                                                                                                                                            return jQuery.grep(jQuery.timers, function( fn ) {
                                                                                                                                                                                                                                return elem === fn.elem;
                                                                                                                                                                                                                            }).length;
                                                                                                                                                                                                                        };
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 9007..9011

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

                                                                                                                                                                                                                        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 4 locations. Consider refactoring.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                    return this.each(function( j ) {
                                                                                                                                                                                                                                        jQuery( this ).removeClass( value.call( this, j, this.className ) );
                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 7171..7175
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2255..2259
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2291..2295

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

                                                                                                                                                                                                                        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 4 locations. Consider refactoring.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                    return this.each(function( j ) {
                                                                                                                                                                                                                                        jQuery( this ).addClass( value.call( this, j, this.className ) );
                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 7214..7218
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2255..2259
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2291..2295

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( type.indexOf(".") >= 0 ) {
                                                                                                                                                                                                                                    // Namespaced trigger; create a regexp to match event type in handle()
                                                                                                                                                                                                                                    namespaces = type.split(".");
                                                                                                                                                                                                                                    type = namespaces.shift();
                                                                                                                                                                                                                                    namespaces.sort();
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3126..3131

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            if ( ct ) {
                                                                                                                                                                                                                                for ( type in contents ) {
                                                                                                                                                                                                                                    if ( contents[ type ] && contents[ type ].test( ct ) ) {
                                                                                                                                                                                                                                        dataTypes.unshift( type );
                                                                                                                                                                                                                                        break;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7845..7852

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    jQuery( types.delegateTarget ).off(
                                                                                                                                                                                                                                        handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
                                                                                                                                                                                                                                        handleObj.selector,
                                                                                                                                                                                                                                        handleObj.handler
                                                                                                                                                                                                                                    );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3816..3820

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

                                                                                                                                                                                                                        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 ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
                                                                                                                                                                                                                                    jqXHR.setRequestHeader( "Content-Type", s.contentType );
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7657..7659

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

                                                                                                                                                                                                                        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 ( match && (match[1] || !context) ) {
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                        // HANDLE: $(html) -> $(array)
                                                                                                                                                                                                                                        if ( match[1] ) {
                                                                                                                                                                                                                                            context = context instanceof jQuery ? context[0] : context;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 135..193

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            for ( key in src ) {
                                                                                                                                                                                                                                if ( src[ key ] !== undefined ) {
                                                                                                                                                                                                                                    ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                            }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7115..7119

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                            stopPropagation: function() {
                                                                                                                                                                                                                                var e = this.originalEvent;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                this.isPropagationStopped = returnTrue;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 4707..4715

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            preventDefault: function() {
                                                                                                                                                                                                                                var e = this.originalEvent;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                this.isDefaultPrevented = returnTrue;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 4716..4724

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

                                                                                                                                                                                                                        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 ( value !== undefined ) {
                                                                                                                                                                                                                                    type = typeof value;
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                    // Convert "+=" or "-=" to relative numbers (#7345)
                                                                                                                                                                                                                                    if ( type === "string" && (ret = rrelNum.exec( value )) ) {
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6632..6669

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

                                                                                                                                                                                                                        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 ( fireGlobals ) {
                                                                                                                                                                                                                                        globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
                                                                                                                                                                                                                                        // Handle the global AJAX counter
                                                                                                                                                                                                                                        if ( !( --jQuery.active ) ) {
                                                                                                                                                                                                                                            jQuery.event.trigger("ajaxStop");
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7555..7561

                                                                                                                                                                                                                        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

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

                                                                                                                                                                                                                            var options, name, src, copy, copyIsArray, clone,
                                                                                                                                                                                                                                target = arguments[0] || {},
                                                                                                                                                                                                                                i = 1,
                                                                                                                                                                                                                                length = arguments.length,
                                                                                                                                                                                                                                deep = false;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/external/globalize.js on lines 299..303
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 325..329

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 55.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( arguments.length ) {
                                                                                                                                                                                                                                    return options === undefined ?
                                                                                                                                                                                                                                        this :
                                                                                                                                                                                                                                        this.each(function( i ) {
                                                                                                                                                                                                                                            jQuery.offset.setOffset( this, options, i );
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 9145..9151

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 55.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                s.converters["script json"] = function() {
                                                                                                                                                                                                                                    if ( !responseContainer ) {
                                                                                                                                                                                                                                        jQuery.error( callbackName + " was not called" );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    return responseContainer[ 0 ];
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8031..8036

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 55.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                        jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
                                                                                                                                                                                                                            class2type[ "[object " + name + "]" ] = name.toLowerCase();
                                                                                                                                                                                                                        });
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 921..923

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 55.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                                for ( type in data.events ) {
                                                                                                                                                                                                                                                    if ( special[ type ] ) {
                                                                                                                                                                                                                                                        jQuery.event.remove( elem, type );
                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                    // This is a shortcut to avoid jQuery.event.remove's overhead
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6522..6530

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                "odd": createPositionalPseudo(function( matchIndexes, length ) {
                                                                                                                                                                                                                                    var i = 1;
                                                                                                                                                                                                                                    for ( ; i < length; i += 2 ) {
                                                                                                                                                                                                                                        matchIndexes.push( i );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 1959..1965

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                "even": createPositionalPseudo(function( matchIndexes, length ) {
                                                                                                                                                                                                                                    var i = 0;
                                                                                                                                                                                                                                    for ( ; i < length; i += 2 ) {
                                                                                                                                                                                                                                        matchIndexes.push( i );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 1967..1973

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                            if ( ( option.selected || i === index ) &&
                                                                                                                                                                                                                                                    // Don't return options that are disabled or in a disabled optgroup
                                                                                                                                                                                                                                                    ( support.optDisabled ? !option.disabled : option.getAttribute( "disabled" ) === null ) &&
                                                                                                                                                                                                                                                    ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2461..2474

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

                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                            ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
                                                                                                                                                                                                                                                    .apply( matched.elem, args );
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3331..3332

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            map: function( callback ) {
                                                                                                                                                                                                                                return this.pushStack( jQuery.map(this, function( elem, i ) {
                                                                                                                                                                                                                                    return callback.call( elem, i, elem );
                                                                                                                                                                                                                                }));
                                                                                                                                                                                                                            },
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 304..308

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    for ( ; i < 4; i++ ) {
                                                                                                                                                                                                                                        expanded[ prefix + cssExpand[ i ] + suffix ] =
                                                                                                                                                                                                                                            parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6958..6961

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

                                                                                                                                                                                                                        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 ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
                                                                                                                                                                                                                                        this.value = val;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 2424..2426

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            for ( name in options ) {
                                                                                                                                                                                                                                old[ name ] = elem.style[ name ];
                                                                                                                                                                                                                                elem.style[ name ] = options[ name ];
                                                                                                                                                                                                                            }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6701..6704

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                        cur = elem.nodeType === 1 && ( elem.className ?
                                                                                                                                                                                                                                            ( " " + elem.className + " " ).replace( rclass, " " ) :
                                                                                                                                                                                                                                            " "
                                                                                                                                                                                                                                        );
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 7225..7228

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                        cur = elem.nodeType === 1 && ( elem.className ?
                                                                                                                                                                                                                                            ( " " + elem.className + " " ).replace( rclass, " " ) :
                                                                                                                                                                                                                                            ""
                                                                                                                                                                                                                                        );
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 7183..7186

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    if ( !type ) {
                                                                                                                                                                                                                                        for ( type in events ) {
                                                                                                                                                                                                                                            jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                        continue;
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3040..3045

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                                                                                                                                                                                                                    return;
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6621..6623

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    for ( i = 0, l = srcElements.length; i < l; i++ ) {
                                                                                                                                                                                                                                        fixInput( srcElements[ i ], destElements[ i ] );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 5062..5064

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                        for ( i = 0, l = srcElements.length; i < l; i++ ) {
                                                                                                                                                                                                                                            cloneCopyEvent( srcElements[ i ], destElements[ i ] );
                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                        src/thirdparty/jquery-2.1.3.js on lines 5051..5053

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    if ( isSuccess ) {
                                                                                                                                                                                                                                        deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                        deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 7537..7541

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

                                                                                                                                                                                                                        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 ( options.xhrFields ) {
                                                                                                                                                                                                                                            for ( i in options.xhrFields ) {
                                                                                                                                                                                                                                                xhr[ i ] = options.xhrFields[ i ];
                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8210..8214

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

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                        jQuery.expr.filters.visible = function( elem ) {
                                                                                                                                                                                                                            return !jQuery.expr.filters.hidden( elem );
                                                                                                                                                                                                                        };
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 6938..6940

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 46.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            trigger: function( type, data ) {
                                                                                                                                                                                                                                return this.each(function() {
                                                                                                                                                                                                                                    jQuery.event.trigger( type, data, this );
                                                                                                                                                                                                                                });
                                                                                                                                                                                                                            },
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3867..3871

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                if ( selector.selector !== undefined ) {
                                                                                                                                                                                                                                    this.selector = selector.selector;
                                                                                                                                                                                                                                    this.context = selector.context;
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 201..204

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                        }, function( name, props ) {
                                                                                                                                                                                                                            jQuery.fn[ name ] = function( speed, easing, callback ) {
                                                                                                                                                                                                                                return this.animate( props, speed, easing, callback );
                                                                                                                                                                                                                            };
                                                                                                                                                                                                                        });
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 8720..8724

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                var handler = function( event ) {
                                                                                                                                                                                                                                        jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
                                                                                                                                                                                                                                    };
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3735..3737

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                    if ( selector ) {
                                                                                                                                                                                                                                        handlers.splice( handlers.delegateCount++, 0, handleObj );
                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                        handlers.push( handleObj );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 3005..3009

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                            nodeName: function( elem, name ) {
                                                                                                                                                                                                                                return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
                                                                                                                                                                                                                            },
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 625..627

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

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

                                                                                                                                                                                                                                            operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
                                                                                                                                                                                                                                            operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
                                                                                                                                                                                                                                            false;
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in src/thirdparty/jquery-2.1.3.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/jquery-1.7.2.js on lines 4822..4826

                                                                                                                                                                                                                        Duplicated Code

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

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

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

                                                                                                                                                                                                                        Tuning

                                                                                                                                                                                                                        This issue has a mass of 45.

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

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

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

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

                                                                                                                                                                                                                        Refactorings

                                                                                                                                                                                                                        Further Reading

                                                                                                                                                                                                                        There are no issues that match your filters.

                                                                                                                                                                                                                        Category
                                                                                                                                                                                                                        Status