bronycub/sugarcub

View on GitHub
core/static/vendor/jquery/dist/jquery.slim.js

Summary

Maintainability
F
11 mos
Test Coverage

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

/*!
 * jQuery JavaScript Library v3.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/animatedSelector,-effects/Tween,-deprecated
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 wks to fix

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

    (function( window ) {
    
    var i,
        support,
        Expr,
    Severity: Major
    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 wk to fix

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

      setDocument = Sizzle.setDocument = function( node ) {
          var hasCompare, subWindow,
              doc = node ? node.ownerDocument || node : preferredDoc;
      
          // Return early if doc is invalid or already selected
      Severity: Major
      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 day to fix

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

            Deferred: function( func ) {
                var tuples = [
        
                        // action, add listener, callbacks,
                        // ... .then handlers, argument index, [final state]
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 7 hrs to fix

          Function Callbacks has 121 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 core/static/vendor/jquery/dist/jquery.slim.js - About 4 hrs to fix

            Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                            then: function( onFulfilled, onRejected, onProgress ) {
                                var maxDepth = 0;
                                function resolve( depth, deferred, handler, special ) {
                                    return function() {
                                        var that = this,
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 4 hrs to fix

              Function trigger has 87 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 core/static/vendor/jquery/dist/jquery.slim.js - About 3 hrs to fix

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

                function Sizzle( selector, context, results, seed ) {
                    var m, i, elem, nid, match, groups, newSelector,
                        newContext = context && context.ownerDocument,
                
                        // nodeType defaults to 9, since context defaults to document
                Severity: Major
                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 3 hrs to fix

                  Function CHILD has 80 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 core/static/vendor/jquery/dist/jquery.slim.js - About 3 hrs to fix

                    Function matcherFromGroupMatchers has 72 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 core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

                      Function add has 72 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 core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

                        Function resolve has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                            function resolve( depth, deferred, handler, special ) {
                                                return function() {
                                                    var that = this,
                                                        args = arguments,
                                                        mightThrow = function() {
                        Severity: Major
                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                                  if ( forward && useCache ) {
                          
                                                      // Seek `elem` from a previously-cached index
                          
                                                      // ...in a gzip-friendly way
                          Severity: Critical
                          Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

                              Function superMatcher has 65 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 core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

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

                                function domManip( collection, args, callback, ignored ) {
                                
                                    // Flatten any nested arrays
                                    args = concat.apply( [], args );
                                
                                
                                Severity: Major
                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

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

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

                                    Function remove has 52 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: Major
                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

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

                                      function buildFragment( elems, context, scripts, selection, ignored ) {
                                          var elem, tmp, tag, wrap, contains, j,
                                              fragment = context.createDocumentFragment(),
                                              nodes = [],
                                              i = 0,
                                      Severity: Major
                                      Found in core/static/vendor/jquery/dist/jquery.slim.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 ) ) {
                                        Severity: Critical
                                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

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

                                          function addCombinator( matcher, combinator, base ) {
                                              var dir = combinator.dir,
                                                  skip = combinator.next,
                                                  key = skip || dir,
                                                  checkNonElements = base && key === "parentNode",
                                          Severity: Minor
                                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                            Function select has 46 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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                                  Function val has 45 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 core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                                    Function data has 44 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: Minor
                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

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

                                                        Function extend has 41 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 core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                          function on( elem, types, selector, data, fn, one ) {
                                                              var origFn, type;
                                                          
                                                              // Types can be a map of types/handlers
                                                              if ( typeof types === "object" ) {
                                                          Severity: Minor
                                                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                                            Function toggleClass has 39 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 core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                              function adjustCSS( elem, prop, valueParts, tween ) {
                                                                  var adjusted,
                                                                      scale = 1,
                                                                      maxIterations = 20,
                                                                      currentValue = tween ?
                                                              Severity: Minor
                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                    dispatch: function( nativeEvent ) {
                                                                
                                                                        // Make a writable jQuery.Event from the native event object
                                                                        var event = jQuery.event.fix( nativeEvent );
                                                                
                                                                
                                                                Severity: Minor
                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                                  mightThrow = function() {
                                                                                                      var returned, then;
                                                                  
                                                                                                      // Support: Promises/A+ section 2.3.3.3.3
                                                                                                      // https://promisesaplus.com/#point-59
                                                                  Severity: Minor
                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                                                    Function style has 35 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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                            handlers: function( event, handlers ) {
                                                                                var i, handleObj, sel, matchedHandlers, matchedSelectors,
                                                                                    handlerQueue = [],
                                                                                    delegateCount = handlers.delegateCount,
                                                                                    cur = event.target;
                                                                        Severity: Minor
                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                                                          Consider simplifying this complex logical expression.
                                                                          Open

                                                                              if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
                                                                          
                                                                                  // Trust units reported by jQuery.css
                                                                                  unit = unit || initialInUnit[ 3 ];
                                                                          
                                                                          
                                                                          Severity: Critical
                                                                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                            function showHide( elements, show ) {
                                                                                var display, elem,
                                                                                    values = [],
                                                                                    index = 0,
                                                                                    length = elements.length;
                                                                            Severity: Minor
                                                                            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                  removeClass: function( value ) {
                                                                                      var classes, elem, cur, curValue, clazz, j, finalValue,
                                                                                          i = 0;
                                                                              
                                                                                      if ( jQuery.isFunction( value ) ) {
                                                                              Severity: Minor
                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

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

                                                                                  Function off has 28 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
                                                                                  Severity: Minor
                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                    jQuery.parseHTML = function( data, context, keepScripts ) {
                                                                                        if ( typeof data !== "string" ) {
                                                                                            return [];
                                                                                        }
                                                                                        if ( typeof context === "boolean" ) {
                                                                                    Severity: Minor
                                                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                      function getWidthOrHeight( elem, name, extra ) {
                                                                                      
                                                                                          // Start with offset property, which is equivalent to the border-box value
                                                                                          var val,
                                                                                              valueIsBorderBox = true,
                                                                                      Severity: Minor
                                                                                      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                            addClass: function( value ) {
                                                                                                var classes, elem, cur, curValue, clazz, j, finalValue,
                                                                                                    i = 0;
                                                                                        
                                                                                                if ( jQuery.isFunction( value ) ) {
                                                                                        Severity: Minor
                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                                remove: function( owner, key ) {
                                                                                                    var i,
                                                                                                        cache = owner[ this.expando ];
                                                                                            
                                                                                                    if ( cache === undefined ) {
                                                                                            Severity: Minor
                                                                                            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                              function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                                                                                                  var i,
                                                                                                      val = 0;
                                                                                              
                                                                                                  // If we already have the right measurement, avoid augmentation
                                                                                              Severity: Minor
                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                                    offset: function( options ) {
                                                                                                
                                                                                                        // Preserve chaining for setter
                                                                                                        if ( arguments.length ) {
                                                                                                            return options === undefined ?
                                                                                                Severity: Minor
                                                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                                      when: function( singleValue ) {
                                                                                                          var
                                                                                                  
                                                                                                              // count of uncompleted subordinates
                                                                                                              remaining = arguments.length,
                                                                                                  Severity: Minor
                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                                                                                                    Consider simplifying this complex logical expression.
                                                                                                    Open

                                                                                                        if ( support.matchesSelector && documentIsHTML &&
                                                                                                            !compilerCache[ expr + " " ] &&
                                                                                                            ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                                                                                            ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                                                                                    
                                                                                                    
                                                                                                    Severity: Major
                                                                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

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

                                                                                                      var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                                                                                      Severity: Major
                                                                                                      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 50 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                        } else if ( match[2] ) {
                                                                                                                            push.apply( results, context.getElementsByTagName( selector ) );
                                                                                                                            return results;
                                                                                                        
                                                                                                                        // Class selector
                                                                                                        Severity: Major
                                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                                  while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                                                                                                                                      cur = cur.replace( " " + clazz + " ", " " );
                                                                                                                                  }
                                                                                                          Severity: Major
                                                                                                          Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                  if ( hasScripts ) {
                                                                                                              
                                                                                                                                      // Support: Android <=4.0 only, PhantomJS 1 only
                                                                                                                                      // push.apply(_, arraylike) throws on ancient WebKit
                                                                                                                                      jQuery.merge( scripts, getAll( node, "script" ) );
                                                                                                              Severity: Major
                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                        if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                                                                                                            cur += clazz + " ";
                                                                                                                                        }
                                                                                                                Severity: Major
                                                                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

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

                                                                                                                  function on( elem, types, selector, data, fn, one ) {
                                                                                                                  Severity: Minor
                                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                                if ( nid === expando ) {
                                                                                                                                                    context.removeAttribute( "id" );
                                                                                                                                                }
                                                                                                                        Severity: Major
                                                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                                if ( Expr.relative[ tokens[j].type ] ) {
                                                                                                                                                    break;
                                                                                                                                                }
                                                                                                                            Severity: Major
                                                                                                                            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                                  while ( i-- ) {
                                                                                                                                                      groups[i] = "#" + nid + " " + toSelector( groups[i] );
                                                                                                                                                  }
                                                                                                                              Severity: Major
                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                          if ( matchedSelectors[ sel ] ) {
                                                                                                                                                              matchedHandlers.push( handleObj );
                                                                                                                                                          }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                        if ( nodeType === 9 ) {
                                                                                                                                                            if ( (elem = context.getElementById( m )) ) {
                                                                                                                                    
                                                                                                                                                                // Support: IE, Opera, Webkit
                                                                                                                                                                // TODO: identify versions
                                                                                                                                    Severity: Major
                                                                                                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                              if ( matchedSelectors[ sel ] === undefined ) {
                                                                                                                                                                  matchedSelectors[ sel ] = handleObj.needsContext ?
                                                                                                                                                                      jQuery( sel, this ).index( cur ) > -1 :
                                                                                                                                                                      jQuery.find( sel, this, null, [ cur ] ).length;
                                                                                                                                                              }
                                                                                                                                      Severity: Major
                                                                                                                                      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                            if ( (nid = context.getAttribute( "id" )) ) {
                                                                                                                                                                nid = nid.replace( rcssescape, fcssescape );
                                                                                                                                                            } else {
                                                                                                                                                                context.setAttribute( "id", (nid = expando) );
                                                                                                                                                            }
                                                                                                                                        Severity: Major
                                                                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                                              if ( ( ofType ?
                                                                                                                                                                                  node.nodeName.toLowerCase() === name :
                                                                                                                                                                                  node.nodeType === 1 ) &&
                                                                                                                                                                                  ++diff ) {
                                                                                                                                          
                                                                                                                                          
                                                                                                                                          Severity: Major
                                                                                                                                          Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

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

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                      if ( rscriptType.test( node.type || "" ) &&
                                                                                                                                                                          !dataPriv.access( node, "globalEval" ) &&
                                                                                                                                                                          jQuery.contains( doc, node ) ) {
                                                                                                                                                  
                                                                                                                                                                          if ( node.src ) {
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                if ( node && node.value === id ) {
                                                                                                                                                                                    return [ elem ];
                                                                                                                                                                                }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 45 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 core/static/vendor/jquery/dist/jquery.slim.js - About 40 mins to fix

                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                Open

                                                                                                                                                                        if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                                                                                                                                                context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
                                                                                                                                                                
                                                                                                                                                                            context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                                                                                                                                                            if ( !context ) {
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 40 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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 35 mins to fix

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

                                                                                                                                                                            function buildFragment( elems, context, scripts, selection, ignored ) {
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 35 mins to fix

                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                Open

                                                                                                                                                                                                    return results;
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                              return this;
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                    Open

                                                                                                                                                                                            return JSON.parse( data );
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                      Open

                                                                                                                                                                                          return data;
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                        Open

                                                                                                                                                                                                                return results;
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                              Open

                                                                                                                                                                                                          return ret;
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                        return this.each( function( i ) {
                                                                                                                                                                                                            var val;
                                                                                                                                                                                                
                                                                                                                                                                                                            if ( this.nodeType !== 1 ) {
                                                                                                                                                                                                                return;
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                          return rect;
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            return false;
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          return results;
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in core/static/vendor/jquery/dist/jquery.slim.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 core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                  return jQuery.makeArray( selector, this );
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                        return value;
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                          return elem.disabled === disabled;
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                        return compare & 4 ? -1 : 1;
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                      return jQuery.grep( elements, function( elem ) {
                                                                                                                                                                                                                          return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
                                                                                                                                                                                                                      } );
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                return root.ready !== undefined ?
                                                                                                                                                                                                                                    root.ready( selector ) :
                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    // Execute immediately if ready is not present
                                                                                                                                                                                                                                    selector( jQuery );
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                  return 0;
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                return ret == null ? undefined : ret;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                  return elem[ name ];
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                    return event.which;
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 30 mins to fix

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

                                                                                                                                                                                                                              var Sizzle =
                                                                                                                                                                                                                              /*!
                                                                                                                                                                                                                               * Sizzle CSS Selector Engine v2.3.3
                                                                                                                                                                                                                               * https://sizzlejs.com/
                                                                                                                                                                                                                               *
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 3 mos to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 544..2797

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

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

                                                                                                                                                                                                                              jQuery.event = {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  global: {},
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  add: function( elem, types, handler, data, selector ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 wks to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4965..5366
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 101..502

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

                                                                                                                                                                                                                              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.extend( {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  Deferred: function( func ) {
                                                                                                                                                                                                                                      var tuples = [
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 1 wk to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3496..3834

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

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

                                                                                                                                                                                                                              jQuery.extend( jQuery.event, {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  trigger: function( event, data, elem, onlyHandlers ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      var i, cur, tmp, bubbleType, ontype, handle, special,
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 wk to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8081..8233
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event/trigger.js on lines 15..167

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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  addClass: function( value ) {
                                                                                                                                                                                                                                      var classes, elem, cur, curValue, clazz, j, finalValue,
                                                                                                                                                                                                                                          i = 0;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 wk to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7733..7890
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/classes.js on lines 15..172

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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  detach: function( selector ) {
                                                                                                                                                                                                                                      return remove( this, selector, true );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 6 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5896..6034
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 318..456

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

                                                                                                                                                                                                                              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 3 locations. 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 core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 5 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3262..3454
                                                                                                                                                                                                                              core/static/vendor/jquery/src/callbacks.js on lines 39..231

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

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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Add in style property hooks for overriding the default
                                                                                                                                                                                                                                  // behavior of getting and setting a style property
                                                                                                                                                                                                                                  cssHooks: {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 5 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6372..6512
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 170..310

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

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

                                                                                                                                                                                                                              Data.prototype = {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  cache: function( owner ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      // Check if the owner object already has a cache
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 4 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4030..4173
                                                                                                                                                                                                                              core/static/vendor/jquery/src/data/Data.js on lines 15..158

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  offset: function( options ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      // Preserve chaining for setter
                                                                                                                                                                                                                                      if ( arguments.length ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 4 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 9938..10044
                                                                                                                                                                                                                              core/static/vendor/jquery/src/offset.js on lines 77..183

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

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

                                                                                                                                                                                                                              function domManip( collection, args, callback, ignored ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Flatten any nested arrays
                                                                                                                                                                                                                                  args = concat.apply( [], args );
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5703..5791
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 125..213

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

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

                                                                                                                                                                                                                              function buildFragment( elems, context, scripts, selection, ignored ) {
                                                                                                                                                                                                                                  var elem, tmp, tag, wrap, contains, j,
                                                                                                                                                                                                                                      fragment = context.createDocumentFragment(),
                                                                                                                                                                                                                                      nodes = [],
                                                                                                                                                                                                                                      i = 0,
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4761..4848
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation/buildFragment.js on lines 14..101

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              var rootjQuery,
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // A simple way to check for HTML strings
                                                                                                                                                                                                                                  // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
                                                                                                                                                                                                                                  // Strict HTML recognition (#11290: must start with <)
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 2951..3056

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

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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                                  htmlPrefilter: function( html ) {
                                                                                                                                                                                                                                      return html.replace( rxhtmlTag, "<$1></$2>" );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5814..5894
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 236..316

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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  has: function( target ) {
                                                                                                                                                                                                                                      var targets = jQuery( target, this ),
                                                                                                                                                                                                                                          l = targets.length;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3075..3154
                                                                                                                                                                                                                              core/static/vendor/jquery/src/traversing.js on lines 24..103

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

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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                                  attr: function( elem, name, value ) {
                                                                                                                                                                                                                                      var ret, hooks,
                                                                                                                                                                                                                                          nType = elem.nodeType;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7468..7545
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/attr.js on lines 26..103

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

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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                                  valHooks: {
                                                                                                                                                                                                                                      option: {
                                                                                                                                                                                                                                          get: function( elem ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7966..8055
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/val.js on lines 81..170

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  data: function( key, value ) {
                                                                                                                                                                                                                                      var i, name, data,
                                                                                                                                                                                                                                          elem = this[ 0 ],
                                                                                                                                                                                                                                          attrs = elem && elem.attributes;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4265..4346
                                                                                                                                                                                                                              core/static/vendor/jquery/src/data.js on lines 95..176

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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  val: function( value ) {
                                                                                                                                                                                                                                      var hooks, ret, isFunction,
                                                                                                                                                                                                                                          elem = this[ 0 ];
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7897..7964
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/val.js on lines 12..79

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

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

                                                                                                                                                                                                                              jQuery.each( {
                                                                                                                                                                                                                                  parent: function( elem ) {
                                                                                                                                                                                                                                      var parent = elem.parentNode;
                                                                                                                                                                                                                                      return parent && parent.nodeType !== 11 ? parent : null;
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3161..3226
                                                                                                                                                                                                                              core/static/vendor/jquery/src/traversing.js on lines 110..175

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  wrapAll: function( html ) {
                                                                                                                                                                                                                                      var wrap;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      if ( this[ 0 ] ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 9318..9382
                                                                                                                                                                                                                              core/static/vendor/jquery/src/wrap.js on lines 10..74

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  queue: function( type, data ) {
                                                                                                                                                                                                                                      var setter = 2;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      if ( typeof type !== "string" ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 4053..4118
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4415..4481
                                                                                                                                                                                                                              core/static/vendor/jquery/src/queue.js on lines 76..142

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

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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                                  queue: function( elem, type, data ) {
                                                                                                                                                                                                                                      var queue;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      if ( elem ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4349..4413
                                                                                                                                                                                                                              core/static/vendor/jquery/src/queue.js on lines 10..74

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

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

                                                                                                                                                                                                                              ( function() {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Executing both pixelPosition & boxSizingReliable tests require only one layout
                                                                                                                                                                                                                                  // so they're executed at the same time to save the second computation.
                                                                                                                                                                                                                                  function computeStyleTests() {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6082..6157
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/support.js on lines 10..85

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

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

                                                                                                                                                                                                                              jQuery.offset = {
                                                                                                                                                                                                                                  setOffset: function( elem, options, i ) {
                                                                                                                                                                                                                                      var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                                                                                                                                                                                                                          position = jQuery.css( elem, "position" ),
                                                                                                                                                                                                                                          curElem = jQuery( elem ),
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 9886..9936
                                                                                                                                                                                                                              core/static/vendor/jquery/src/offset.js on lines 25..75

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

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

                                                                                                                                                                                                                              function adjustCSS( elem, prop, valueParts, tween ) {
                                                                                                                                                                                                                                  var adjusted,
                                                                                                                                                                                                                                      scale = 1,
                                                                                                                                                                                                                                      maxIterations = 20,
                                                                                                                                                                                                                                      currentValue = tween ?
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4531..4591
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/adjustCSS.js on lines 8..68

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

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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                                  prop: function( elem, name, value ) {
                                                                                                                                                                                                                                      var ret, hooks,
                                                                                                                                                                                                                                          nType = elem.nodeType;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7600..7665
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/prop.js on lines 25..90

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

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

                                                                                                                                                                                                                              function on( elem, types, selector, data, fn, one ) {
                                                                                                                                                                                                                                  var origFn, type;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Types can be a map of types/handlers
                                                                                                                                                                                                                                  if ( typeof types === "object" ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 days to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4900..4959
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 36..95

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( {
                                                                                                                                                                                                                                  altKey: true,
                                                                                                                                                                                                                                  bubbles: true,
                                                                                                                                                                                                                                  cancelable: true,
                                                                                                                                                                                                                                  changedTouches: true,
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5466..5524
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 602..660

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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  serialize: function() {
                                                                                                                                                                                                                                      return jQuery.param( this.serializeArray() );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                                  serializeArray: function() {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8428..8463
                                                                                                                                                                                                                              core/static/vendor/jquery/src/serialize.js on lines 92..127

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

                                                                                                                                                                                                                              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.extend( {
                                                                                                                                                                                                                                  find: function( selector ) {
                                                                                                                                                                                                                                      var i, ret,
                                                                                                                                                                                                                                          len = this.length,
                                                                                                                                                                                                                                          self = this;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 2902..2944

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

                                                                                                                                                                                                                              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 access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                                                                                                                                                                                                                  var i = 0,
                                                                                                                                                                                                                                      len = elems.length,
                                                                                                                                                                                                                                      bulk = key == null;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3952..4009
                                                                                                                                                                                                                              core/static/vendor/jquery/src/core/access.js on lines 9..66

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

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

                                                                                                                                                                                                                              jQuery.Event = function( src, props ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Allow instantiation without the 'new' keyword
                                                                                                                                                                                                                                  if ( !( this instanceof jQuery.Event ) ) {
                                                                                                                                                                                                                                      return new jQuery.Event( src, props );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5376..5423
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 512..559

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function showHide( elements, show ) {
                                                                                                                                                                                                                                  var display, elem,
                                                                                                                                                                                                                                      values = [],
                                                                                                                                                                                                                                      index = 0,
                                                                                                                                                                                                                                      length = elements.length;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4619..4665
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/showHide.js on lines 34..80

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  on: function( types, selector, data, fn ) {
                                                                                                                                                                                                                                      return on( this, types, selector, data, fn );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5562..5606
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 698..742

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function curCSS( elem, name, computed ) {
                                                                                                                                                                                                                                  var width, minWidth, maxWidth, ret,
                                                                                                                                                                                                                                      style = elem.style;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  computed = computed || getStyles( elem );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6160..6204
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/curCSS.js on lines 12..56

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

                                                                                                                                                                                                                              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.parseHTML = function( data, context, keepScripts ) {
                                                                                                                                                                                                                                  if ( typeof data !== "string" ) {
                                                                                                                                                                                                                                      return [];
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                  if ( typeof context === "boolean" ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 9740..9784

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

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

                                                                                                                                                                                                                              function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                                                                                                                                                                                                                                  var i,
                                                                                                                                                                                                                                      val = 0;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // If we already have the right measurement, avoid augmentation
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6274..6318
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 72..116

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

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

                                                                                                                                                                                                                              jQuery.each( [ "height", "width" ], function( i, name ) {
                                                                                                                                                                                                                                  jQuery.cssHooks[ name ] = {
                                                                                                                                                                                                                                      get: function( elem, computed, extra ) {
                                                                                                                                                                                                                                          if ( computed ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6514..6559
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 312..357

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

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

                                                                                                                                                                                                                              if ( !support.focusin ) {
                                                                                                                                                                                                                                  jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      // Attach a single capturing handler on the document while someone wants focusin/focusout
                                                                                                                                                                                                                                      var handler = function( event ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8284..8316
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event/focusin.js on lines 20..52

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

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

                                                                                                                                                                                                                              function getWidthOrHeight( elem, name, extra ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Start with offset property, which is equivalent to the border-box value
                                                                                                                                                                                                                                  var val,
                                                                                                                                                                                                                                      valueIsBorderBox = true,
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6320..6370
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 118..168

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function cloneCopyEvent( src, dest ) {
                                                                                                                                                                                                                                  var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  if ( dest.nodeType !== 1 ) {
                                                                                                                                                                                                                                      return;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5655..5687
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 77..109

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

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

                                                                                                                                                                                                                              function winnow( elements, qualifier, not ) {
                                                                                                                                                                                                                                  if ( jQuery.isFunction( qualifier ) ) {
                                                                                                                                                                                                                                      return jQuery.grep( elements, function( elem, i ) {
                                                                                                                                                                                                                                          return !!qualifier.call( elem, i, elem ) !== not;
                                                                                                                                                                                                                                      } );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 2853..2884
                                                                                                                                                                                                                              core/static/vendor/jquery/src/traversing/findFilter.js on lines 13..44

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.Event.prototype = {
                                                                                                                                                                                                                                  constructor: jQuery.Event,
                                                                                                                                                                                                                                  isDefaultPrevented: returnFalse,
                                                                                                                                                                                                                                  isPropagationStopped: returnFalse,
                                                                                                                                                                                                                                  isImmediatePropagationStopped: returnFalse,
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5427..5463
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 563..599

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

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

                                                                                                                                                                                                                              jQuery.param = function( a, traditional ) {
                                                                                                                                                                                                                                  var prefix,
                                                                                                                                                                                                                                      s = [],
                                                                                                                                                                                                                                      add = function( key, valueOrFunction ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8393..8426
                                                                                                                                                                                                                              core/static/vendor/jquery/src/serialize.js on lines 57..90

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( {
                                                                                                                                                                                                                                  margin: "",
                                                                                                                                                                                                                                  padding: "",
                                                                                                                                                                                                                                  border: "Width"
                                                                                                                                                                                                                              }, function( prefix, suffix ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 6858..6883
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6575..6600
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 373..398

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

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

                                                                                                                                                                                                                              function buildParams( prefix, obj, traditional, add ) {
                                                                                                                                                                                                                                  var name;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  if ( jQuery.isArray( obj ) ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8353..8389
                                                                                                                                                                                                                              core/static/vendor/jquery/src/serialize.js on lines 17..53

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

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

                                                                                                                                                                                                                              ( function() {
                                                                                                                                                                                                                                  var fragment = document.createDocumentFragment(),
                                                                                                                                                                                                                                      div = fragment.appendChild( document.createElement( "div" ) ),
                                                                                                                                                                                                                                      input = document.createElement( "input" );
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4851..4874
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation/support.js on lines 8..31

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

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

                                                                                                                                                                                                                              jQuery.each( {
                                                                                                                                                                                                                                  mouseenter: "mouseover",
                                                                                                                                                                                                                                  mouseleave: "mouseout",
                                                                                                                                                                                                                                  pointerenter: "pointerover",
                                                                                                                                                                                                                                  pointerleave: "pointerout"
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5534..5560
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event.js on lines 670..696

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( {
                                                                                                                                                                                                                                  appendTo: "append",
                                                                                                                                                                                                                                  prependTo: "prepend",
                                                                                                                                                                                                                                  insertBefore: "before",
                                                                                                                                                                                                                                  insertAfter: "after",
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6036..6061
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 458..483

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
                                                                                                                                                                                                                                  var top = "pageYOffset" === prop;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  jQuery.fn[ method ] = function( val ) {
                                                                                                                                                                                                                                      return access( this, function( elem, method, val ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 10047..10069
                                                                                                                                                                                                                              core/static/vendor/jquery/src/offset.js on lines 186..208

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

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

                                                                                                                                                                                                                              ( function() {
                                                                                                                                                                                                                                  var input = document.createElement( "input" ),
                                                                                                                                                                                                                                      select = document.createElement( "select" ),
                                                                                                                                                                                                                                      opt = select.appendChild( document.createElement( "option" ) );
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7429..7450
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/support.js on lines 8..29

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Is the DOM ready to be used? Set to true once it occurs.
                                                                                                                                                                                                                                  isReady: false,
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3880..3917
                                                                                                                                                                                                                              core/static/vendor/jquery/src/core/ready.js on lines 28..65

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
                                                                                                                                                                                                                                  var getter = attrHandle[ name ] || jQuery.find.attr;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  attrHandle[ name ] = function( elem, name, isXML ) {
                                                                                                                                                                                                                                      var ret, handle,
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7561..7580
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/attr.js on lines 119..138

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

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

                                                                                                                                                                                                                              function adoptValue( value, resolve, reject ) {
                                                                                                                                                                                                                                  var method;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  try {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3464..3494
                                                                                                                                                                                                                              core/static/vendor/jquery/src/deferred.js on lines 16..46

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

                                                                                                                                                                                                                              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( [ "radio", "checkbox" ], function() {
                                                                                                                                                                                                                                  jQuery.valHooks[ this ] = {
                                                                                                                                                                                                                                      set: function( elem, value ) {
                                                                                                                                                                                                                                          if ( jQuery.isArray( value ) ) {
                                                                                                                                                                                                                                              return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8058..8071

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

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

                                                                                                                                                                                                                              function remove( elem, selector, keepData ) {
                                                                                                                                                                                                                                  var node,
                                                                                                                                                                                                                                      nodes = selector ? jQuery.filter( selector, elem ) : elem,
                                                                                                                                                                                                                                      i = 0;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5793..5812
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 215..234

                                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  show: function() {
                                                                                                                                                                                                                                      return showHide( this, true );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                                  hide: function() {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4667..4687
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/showHide.js on lines 82..102

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function dataAttr( elem, key, data ) {
                                                                                                                                                                                                                                  var name;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // If nothing was found internally, try to fetch any
                                                                                                                                                                                                                                  // data from the HTML5 data-* attribute
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4218..4239
                                                                                                                                                                                                                              core/static/vendor/jquery/src/data.js on lines 48..69

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              if ( !support.optSelected ) {
                                                                                                                                                                                                                                  jQuery.propHooks.selected = {
                                                                                                                                                                                                                                      get: function( elem ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                          /* eslint no-unused-expressions: "off" */
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7675..7701
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/prop.js on lines 100..126

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function getAll( context, tag ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Support: IE <=9 - 11 only
                                                                                                                                                                                                                                  // Use typeof to avoid zero-argument method invocation on host objects (#15151)
                                                                                                                                                                                                                                  var ret;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4720..4741

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.extend( {
                                                                                                                                                                                                                                  hasData: function( elem ) {
                                                                                                                                                                                                                                      return dataUser.hasData( elem ) || dataPriv.hasData( elem );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4241..4263
                                                                                                                                                                                                                              core/static/vendor/jquery/src/data.js on lines 71..93

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.filter = function( expr, elems, not ) {
                                                                                                                                                                                                                                  var elem = elems[ 0 ];
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  if ( not ) {
                                                                                                                                                                                                                                      expr = ":not(" + expr + ")";
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 2886..2900
                                                                                                                                                                                                                              core/static/vendor/jquery/src/traversing/findFilter.js on lines 46..60

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function getDefaultDisplay( elem ) {
                                                                                                                                                                                                                                  var temp,
                                                                                                                                                                                                                                      doc = elem.ownerDocument,
                                                                                                                                                                                                                                      nodeName = elem.nodeName,
                                                                                                                                                                                                                                      display = defaultDisplayMap[ nodeName ];
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4596..4617
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/showHide.js on lines 11..32

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

                                                                                                                                                                                                                              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 swap = function( elem, options, callback, args ) {
                                                                                                                                                                                                                                  var ret, name,
                                                                                                                                                                                                                                      old = {};
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Remember the old values, and insert the new ones
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4508..4526

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              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 core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 4 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7416..7426
                                                                                                                                                                                                                              core/static/vendor/jquery/src/queue/delay.js on lines 11..21

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( [ "top", "left" ], function( i, prop ) {
                                                                                                                                                                                                                                  jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
                                                                                                                                                                                                                                      function( elem, computed ) {
                                                                                                                                                                                                                                          if ( computed ) {
                                                                                                                                                                                                                                              computed = curCSS( elem, prop );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 10077..10090

                                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              ( function( global, factory ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  "use strict";
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  if ( typeof module === "object" && typeof module.exports === "object" ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 14..10220

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function fixInput( src, dest ) {
                                                                                                                                                                                                                                  var nodeName = dest.nodeName.toLowerCase();
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Fails to persist the checked state of a cloned checkbox or radio button.
                                                                                                                                                                                                                                  if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5690..5701
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 112..123

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              var dir = function( elem, dir, until ) {
                                                                                                                                                                                                                                  var matched = [],
                                                                                                                                                                                                                                      truncate = until !== undefined;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 2815..2828

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  trigger: function( type, data ) {
                                                                                                                                                                                                                                      return this.each( function() {
                                                                                                                                                                                                                                          jQuery.event.trigger( type, data, this );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8235..8248
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event/trigger.js on lines 169..182

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function vendorPropName( name ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Shortcut for names that are not vendor prefixed
                                                                                                                                                                                                                                  if ( name in emptyStyle ) {
                                                                                                                                                                                                                                      return name;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6243..6260
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 41..58

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function getData( data ) {
                                                                                                                                                                                                                                  if ( data === "true" ) {
                                                                                                                                                                                                                                      return true;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4193..4216
                                                                                                                                                                                                                              core/static/vendor/jquery/src/data.js on lines 23..46

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

                                                                                                                                                                                                                              jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
                                                                                                                                                                                                                                  function( elem, computed ) {
                                                                                                                                                                                                                                      if ( computed ) {
                                                                                                                                                                                                                                          return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
                                                                                                                                                                                                                                              elem.getBoundingClientRect().left -
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6561..6572
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 359..370

                                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              var isHiddenWithinTree = function( elem, el ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      // isHiddenWithinTree might be called from jQuery#filter function;
                                                                                                                                                                                                                                      // in that case, element will be second argument
                                                                                                                                                                                                                                      elem = el || elem;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4489..4506

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

                                                                                                                                                                                                                              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 ( document.readyState === "complete" ||
                                                                                                                                                                                                                                  ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Handle it asynchronously to allow scripts the opportunity to delay ready
                                                                                                                                                                                                                                  window.setTimeout( jQuery.ready );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3932..3945

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  prop: function( name, value ) {
                                                                                                                                                                                                                                      return access( this, jQuery.prop, name, value, arguments.length > 1 );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7588..7598
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/prop.js on lines 13..23

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.Deferred.exceptionHook = function( error, stack ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Support: IE 8 - 9 only
                                                                                                                                                                                                                                  // Console exists when dev tools are open, which can happen at any time
                                                                                                                                                                                                                                  if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3841..3848
                                                                                                                                                                                                                              core/static/vendor/jquery/src/deferred/exceptionHook.js on lines 12..19

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

                                                                                                                                                                                                                              jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
                                                                                                                                                                                                                                  "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
                                                                                                                                                                                                                                  "change select submit keydown keypress keyup contextmenu" ).split( " " ),
                                                                                                                                                                                                                                  function( i, name ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8251..8262
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event/alias.js on lines 10..21

                                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  attr: function( name, value ) {
                                                                                                                                                                                                                                      return access( this, jQuery.attr, name, value, arguments.length > 1 );
                                                                                                                                                                                                                                  },
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 7931..7941
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7456..7466
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/attr.js on lines 14..24

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              var
                                                                                                                                                                                                                                  version = "3.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/animatedSelector,-effects/Tween,-deprecated",
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Define a local copy of jQuery
                                                                                                                                                                                                                                  jQuery = function( selector, context ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 90..112

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function manipulationTarget( elem, content ) {
                                                                                                                                                                                                                                  if ( jQuery.nodeName( elem, "table" ) &&
                                                                                                                                                                                                                                      jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5628..5636
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 50..58

                                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              jQuery.noConflict = function( deep ) {
                                                                                                                                                                                                                                  if ( window.$ === jQuery ) {
                                                                                                                                                                                                                                      window.$ = _$;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 10327..10337
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 10196..10206
                                                                                                                                                                                                                              core/static/vendor/jquery/src/exports/global.js on lines 15..25

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function setGlobalEval( elems, refElements ) {
                                                                                                                                                                                                                                  var i = 0,
                                                                                                                                                                                                                                      l = elems.length;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  for ( ; i < l; i++ ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4745..4756
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation/setGlobalEval.js on lines 8..19

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              support.createHTMLDocument = ( function() {
                                                                                                                                                                                                                                  var body = document.implementation.createHTMLDocument( "" ).body;
                                                                                                                                                                                                                                  body.innerHTML = "<form></form><form></form>";
                                                                                                                                                                                                                                  return body.childNodes.length === 2;
                                                                                                                                                                                                                              } )();
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 9729..9733

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

                                                                                                                                                                                                                              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 DOMEval( code, doc ) {
                                                                                                                                                                                                                                      doc = doc || document;
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      var script = doc.createElement( "script" );
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 76..83

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

                                                                                                                                                                                                                              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
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Swappable if display is none or starts with table
                                                                                                                                                                                                                                  // except "table", "table-cell", or "table-caption"
                                                                                                                                                                                                                                  // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6227..6240
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 25..38

                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                              This issue has a mass of 76.

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

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

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

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

                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              var siblings = function( n, elem ) {
                                                                                                                                                                                                                                  var matched = [];
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  for ( ; n; n = n.nextSibling ) {
                                                                                                                                                                                                                                      if ( n.nodeType === 1 && n !== elem ) {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 2831..2841

                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                              This issue has a mass of 76.

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

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

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

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

                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                              function setPositiveNumber( elem, value, subtract ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Any relative (+/-) values have already been
                                                                                                                                                                                                                                  // normalized at this point
                                                                                                                                                                                                                                  var matches = rcssNum.exec( value );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6262..6272
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css.js on lines 60..70

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

                                                                                                                                                                                                                              function addGetHookIf( conditionFn, hookFn ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Define the hook, we'll check on the first run if it's really needed.
                                                                                                                                                                                                                                  return {
                                                                                                                                                                                                                                      get: function() {
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6207..6224
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/addGetHookIf.js on lines 5..22

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

                                                                                                                                                                                                                              var wrapMap = {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Support: IE <=9 only
                                                                                                                                                                                                                                  option: [ 1, "<select multiple='multiple'>", "</select>" ],
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4697..4711
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation/wrapMap.js on lines 6..20

                                                                                                                                                                                                                              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

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

                                                                                                                                                                                                                              var getStyles = function( elem ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                      // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
                                                                                                                                                                                                                                      // IE throws on elements created in popups
                                                                                                                                                                                                                                      // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 6066..6078

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

                                                                                                                                                                                                                              jQuery.fn.ready = function( fn ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  readyList
                                                                                                                                                                                                                                      .then( fn )
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3865..3878
                                                                                                                                                                                                                              core/static/vendor/jquery/src/core/ready.js on lines 13..26

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function restoreScript( elem ) {
                                                                                                                                                                                                                                  var match = rscriptTypeMasked.exec( elem.type );
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  if ( match ) {
                                                                                                                                                                                                                                      elem.type = match[ 1 ];
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5643..5653
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 65..75

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              function createOptions( options ) {
                                                                                                                                                                                                                                  var object = {};
                                                                                                                                                                                                                                  jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
                                                                                                                                                                                                                                      object[ flag ] = true;
                                                                                                                                                                                                                                  } );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3232..3238
                                                                                                                                                                                                                              core/static/vendor/jquery/src/callbacks.js on lines 9..15

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              boolHook = {
                                                                                                                                                                                                                                  set: function( elem, value, name ) {
                                                                                                                                                                                                                                      if ( value === false ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                          // Remove boolean attributes when set to false
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7548..7559
                                                                                                                                                                                                                              core/static/vendor/jquery/src/attributes/attr.js on lines 106..117

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

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              var acceptData = function( owner ) {
                                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Accepts only:
                                                                                                                                                                                                                                  //  - Node
                                                                                                                                                                                                                                  //    - Node.ELEMENT_NODE
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 4010..4019

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              jQuery.each( [
                                                                                                                                                                                                                                  "tabIndex",
                                                                                                                                                                                                                                  "readOnly",
                                                                                                                                                                                                                                  "maxLength",
                                                                                                                                                                                                                                  "cellSpacing",
                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 7703..7716

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

                                                                                                                                                                                                                              if ( typeof define === "function" && define.amd ) {
                                                                                                                                                                                                                                  define( "jquery", [], function() {
                                                                                                                                                                                                                                      return jQuery;
                                                                                                                                                                                                                                  } );
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 50 mins to fix
                                                                                                                                                                                                                              core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 10311..10315
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 10179..10183
                                                                                                                                                                                                                              core/static/vendor/jquery/src/exports/amd.js on lines 20..24

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

                                                                                                                                                                                                                              jQuery.fn.extend( {
                                                                                                                                                                                                                                  hover: function( fnOver, fnOut ) {
                                                                                                                                                                                                                                      return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              } );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 50 mins to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 8264..8268
                                                                                                                                                                                                                              core/static/vendor/jquery/src/event/alias.js on lines 23..27

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

                                                                                                                                                                                                                              function completed() {
                                                                                                                                                                                                                                  document.removeEventListener( "DOMContentLoaded", completed );
                                                                                                                                                                                                                                  window.removeEventListener( "load", completed );
                                                                                                                                                                                                                                  jQuery.ready();
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 40 mins to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 3922..3926
                                                                                                                                                                                                                              core/static/vendor/jquery/src/core/ready.js on lines 70..74

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

                                                                                                                                                                                                                              function disableScript( elem ) {
                                                                                                                                                                                                                                  elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
                                                                                                                                                                                                                                  return elem;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 40 mins to fix
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 5639..5642
                                                                                                                                                                                                                              core/static/vendor/jquery/src/manipulation.js on lines 61..64

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

                                                                                                                                                                                                                              jQuery.expr.pseudos.hidden = function( elem ) {
                                                                                                                                                                                                                                  return !jQuery.expr.pseudos.visible( elem );
                                                                                                                                                                                                                              };
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in core/static/vendor/jquery/dist/jquery.slim.js and 3 other locations - About 35 mins to fix
                                                                                                                                                                                                                              core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 9460..9462
                                                                                                                                                                                                                              core/static/vendor/jquery/dist/jquery.js on lines 9385..9387
                                                                                                                                                                                                                              core/static/vendor/jquery/src/css/hiddenVisibleSelectors.js on lines 8..10

                                                                                                                                                                                                                              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

                                                                                                                                                                                                                              There are no issues that match your filters.

                                                                                                                                                                                                                              Category
                                                                                                                                                                                                                              Status