zk/src/main/resources/web/js/zk/ext/jquery.js

Summary

Maintainability
F
2 mos
Test Coverage

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

/*!
 * jQuery JavaScript Library v3.5.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 wks to fix

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

    ( function( window ) {
    var i,
        support,
        Expr,
        getText,
    Severity: Major
    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 wk to fix

      Function setDocument has 333 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 day to fix

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

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

          Function Deferred has 178 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 7 hrs to fix

            Function CHILD has 122 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 4 hrs to fix

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

              function defaultPrefilter( elem, props, opts ) {
                  var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
                      isBox = "width" in props || "height" in props,
                      anim = this,
                      orig = {},
              Severity: Major
              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 4 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 4 hrs to fix

                  Function matcherFromGroupMatchers has 104 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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 4 hrs to fix

                      Function superMatcher has 97 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 3 hrs to fix

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

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

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

                          function Animation( elem, properties, options ) {
                              var result,
                                  stopped,
                                  index = 0,
                                  length = Animation.prefilters.length,
                          Severity: Major
                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 3 hrs to fix

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

                            function addCombinator( matcher, combinator, base, selector/* Jumper Chen, Potix, 20130509*/) {
                                var dir = combinator.dir,
                                    skip = combinator.next,
                                    key = skip || dir,
                                    checkNonElements = base && key === "parentNode",
                            Severity: Major
                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 3 hrs to fix

                              Function Sizzle has 81 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 3 hrs to fix

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

                                            send: function( headers, complete ) {
                                                var i,
                                                    xhr = options.xhr();
                                
                                                xhr.open(
                                Severity: Major
                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 3 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

                                    Function setMatcher has 70 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

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

                                              function done( status, nativeStatusText, responses, headers ) {
                                                  var isSuccess, success, error, response, modified,
                                                      statusText = nativeStatusText;
                                      
                                                  // Ignore repeat invocations
                                      Severity: Major
                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

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

                                            function domManip( collection, args, callback, ignored ) {
                                            
                                                // Flatten any nested arrays
                                                args = flat( args );
                                            
                                            
                                            Severity: Major
                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

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

                                              function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                                  var conv2, current, conv, tmp, prev,
                                                      converters = {},
                                              
                                                      // Work with a copy of dataTypes in case we need to modify it for conversion
                                              Severity: Major
                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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, attached, j,
                                                            fragment = context.createDocumentFragment(),
                                                            nodes = [],
                                                            i = 0,
                                                    Severity: Major
                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

                                                        Function select has 48 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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                            function matcherFromTokens( tokens, selector/* Jumper Chen, Potix, 20130509*/ ) {
                                                                var checkContext, matcher, j,
                                                                    len = tokens.length,
                                                                    leadingRelative = Expr.relative[ tokens[ 0 ].type ],
                                                                    implicitRelative = leadingRelative || Expr.relative[ " " ],
                                                            Severity: Minor
                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.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, valueIsFunction,
                                                                          elem = this[ 0 ];
                                                              
                                                                      if ( !arguments.length ) {
                                                              Severity: Minor
                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                  function leverageNative( el, type, expectSync ) {
                                                                  
                                                                      // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
                                                                      if ( !expectSync ) {
                                                                          if ( dataPriv.get( el, type ) === undefined ) {
                                                                  Severity: Minor
                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                                                    Function extend has 43 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                      function adjustCSS( elem, prop, valueParts, tween ) {
                                                                          var adjusted, scale,
                                                                              maxIterations = 20,
                                                                              currentValue = tween ?
                                                                                  function() {
                                                                      Severity: Minor
                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                            dispatch: function( nativeEvent ) {
                                                                        
                                                                                var i, j, ret, matched, handleObj, handlerQueue,
                                                                                    args = new Array( arguments.length ),
                                                                        
                                                                        
                                                                        Severity: Minor
                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

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

                                                                              Function style has 41 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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                      toggleClass: function( value, stateVal ) {
                                                                                          var type = typeof value,
                                                                                              isValidValue = type === "string" || Array.isArray( value );
                                                                                  
                                                                                          if ( typeof stateVal === "boolean" && isValidValue ) {
                                                                                  Severity: Minor
                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                                                                    Function setOffset has 40 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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                      function ajaxHandleResponses( s, jqXHR, responses ) {
                                                                                      
                                                                                          var ct, type, finalDataType, firstDataType,
                                                                                              contents = s.contents,
                                                                                              dataTypes = s.dataTypes;
                                                                                      Severity: Minor
                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                          function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                                                                                              var i = dimension === "width" ? 1 : 0,
                                                                                                  extra = 0,
                                                                                                  delta = 0;
                                                                                          
                                                                                          
                                                                                          Severity: Minor
                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                closest: function( selectors, context ) {
                                                                                                    var cur,
                                                                                                        i = 0,
                                                                                                        l = this.length,
                                                                                                        matched = [],
                                                                                            Severity: Minor
                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                              function getWidthOrHeight( elem, dimension, extra ) {
                                                                                              
                                                                                                  // Start with computed style
                                                                                                  var styles = getStyles( elem ),
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                                                                                  Consider simplifying this complex logical expression.
                                                                                                  Open

                                                                                                      if ( ( !support.boxSizingReliable() && isBorderBox ||
                                                                                                  
                                                                                                          // Support: IE 10 - 11+, Edge 15 - 18+
                                                                                                          // IE/Edge misreport `getComputedStyle` of table rows with width/height
                                                                                                          // set in CSS while `offset*` properties report correct values.
                                                                                                  Severity: Critical
                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                              handler: function( event ) {
                                                                                                                  var notAsync, result,
                                                                                                                      saved = dataPriv.get( this, type );
                                                                                                      
                                                                                                                  if ( ( event.isTrigger & 1 ) && this[ type ] ) {
                                                                                                      Severity: Minor
                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                        jQuery.fn.load = function( url, params, callback ) {
                                                                                                            var selector, type, response,
                                                                                                                self = this,
                                                                                                                off = url.indexOf( " " );
                                                                                                        
                                                                                                        
                                                                                                        Severity: Minor
                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.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 ( isFunction( value ) ) {
                                                                                                          Severity: Minor
                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                                    set: function( elem, value, extra ) {
                                                                                                                        var matches,
                                                                                                                            styles = getStyles( elem ),
                                                                                                            
                                                                                                                            // Only read styles.position if the test has a chance to fail
                                                                                                            Severity: Minor
                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                              jQuery.speed = function( speed, easing, fn ) {
                                                                                                                  var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                                                                                                                      complete: fn || !fn && easing ||
                                                                                                                          isFunction( speed ) && speed,
                                                                                                                      duration: speed,
                                                                                                              Severity: Minor
                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                                        'ZTAG': function (selector) {
                                                                                                                            var tag = selector.substring(1);
                                                                                                                            return function (elem, context, xml, wgt) {
                                                                                                                                wgt = wgt || zk.Widget.$(elem, {exact: true});
                                                                                                                
                                                                                                                
                                                                                                                Severity: Minor
                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                                        finish: function( type ) {
                                                                                                                            if ( type !== false ) {
                                                                                                                                type = type || "fx";
                                                                                                                            }
                                                                                                                            return this.each( function() {
                                                                                                                    Severity: Minor
                                                                                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                                                                                                              when: function( singleValue ) {
                                                                                                                                  var
                                                                                                                          
                                                                                                                                      // count of uncompleted subordinates
                                                                                                                                      remaining = arguments.length,
                                                                                                                          Severity: Minor
                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

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

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

                                                                                                                                  position: function() {
                                                                                                                                      if ( !this[ 0 ] ) {
                                                                                                                                          return;
                                                                                                                                      }
                                                                                                                              
                                                                                                                              
                                                                                                                              Severity: Minor
                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.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 ( isFunction( value ) ) {
                                                                                                                                Severity: Minor
                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.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 = isAttached( elem );
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                      Open

                                                                                                                                          if ( support.matchesSelector && documentIsHTML &&
                                                                                                                                              !nonnativeSelectorCache[ expr + " " ] &&
                                                                                                                                              ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                                                                                                                              ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      Severity: Major
                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 50 mins to fix

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

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

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

                                                                                                                                            function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                                      while ((node = node[dir])) {
                                                                                                                                                                                          if (ofType ?
                                                                                                                                                                                              node.nodeName.toLowerCase() === name :
                                                                                                                                                                                              node.nodeType === 1) {
                                                                                                                                                  
                                                                                                                                                  
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 && ( node.type || "" ).toLowerCase()  !== "module" ) {
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

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

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                              if (node.nodeType === 1 && ++diff && node === elem) {
                                                                                                                                                                                                  uniqueCache[type] = [dirruns, nodeIndex, diff];
                                                                                                                                                                                                  break;
                                                                                                                                                                                              }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                                while ((node = ++nodeIndex && node && node[dir] ||
                                                                                                                                                                                                    (diff = nodeIndex = 0) || start.pop())) {
                                                                                                                                                            
                                                                                                                                                                                                    if ((ofType ?
                                                                                                                                                                                                            node.nodeName.toLowerCase() === name :
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                      if ( skip && skip === elem.nodeName.toLowerCase() ) {
                                                                                                                                                                                          elem = elem[ dir ] || elem;
                                                                                                                                                                                      } else if ( ( oldCache = uniqueCache[ key ] ) &&
                                                                                                                                                                                          oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
                                                                                                                                                              
                                                                                                                                                              
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.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 ( isFunction( this[ match ] ) ) {
                                                                                                                                                                                                this[ match ]( context[ match ] );
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                          if ( copyIsArray && !Array.isArray( src ) ) {
                                                                                                                                                                                              clone = [];
                                                                                                                                                                                          } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
                                                                                                                                                                                              clone = {};
                                                                                                                                                                                          } else {
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                            if ((ofType ?
                                                                                                                                                                                                                    node.widgetName === name :
                                                                                                                                                                                                                    true) &&
                                                                                                                                                                                                                ++diff) {
                                                                                                                                                                        
                                                                                                                                                                        
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                    if (!elem) {
                                                                                                                                                                                                        // treechildren may not have the value from $n()
                                                                                                                                                                                                        elem = wgt.parent.$n();
                                                                                                                                                                                                    }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                      if (cur[zk.Widget._CURRENT_TARGET]) {
                                                                                                                                                                                                          cur[zk.Widget._TARGET] = cur[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                          delete cur[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                      }
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                        if (!elem) {
                                                                                                                                                                                                            // treechildren may not have the value from $n()
                                                                                                                                                                                                            elem = w.parent.$n();
                                                                                                                                                                                                        }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          if (!elem[zk.Widget._TARGETS]) {
                                                                                                                                                                                                              elem[zk.Widget._TARGETS] = [w];
                                                                                                                                                                                                          } else {
                                                                                                                                                                                                              elem[zk.Widget._TARGETS].push(w);
                                                                                                                                                                                                          }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                            if ( newContext !== context || !support.scope ) {
                                                                                                                                                                                        
                                                                                                                                                                                                                // Capture the context ID, setting it first if necessary
                                                                                                                                                                                                                if ( ( nid = context.getAttribute( "id" ) ) ) {
                                                                                                                                                                                                                    nid = nid.replace( rcssescape, fcssescape );
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                          Open

                                                                                                                                                                                                                      if (!targets.length) {
                                                                                                                                                                                                                          delete elem[zk.Widget._TARGETS];
                                                                                                                                                                                                                      }
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.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 = camelCase( name.slice( 5 ) );
                                                                                                                                                                                                                            dataAttr( elem, name, data[ name ] );
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                        if ( matchedSelectors[ sel ] ) {
                                                                                                                                                                                                                            matchedHandlers.push( handleObj );
                                                                                                                                                                                                                        }
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                  Open

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

                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                    Open

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

                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                  if (!elem[zk.Widget._TARGET]) {
                                                                                                                                                                                                                                      elem[zk.Widget._TARGET] = elem[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                                                      delete elem[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

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

                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                    if (!elem) {
                                                                                                                                                                                                                                        // treechildren may not have the value from $n()
                                                                                                                                                                                                                                        elem = wgt.parent.$n();
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                  while ((node = node[dir])) {
                                                                                                                                                                                                                                                      if (node.widgetName === name) {
                                                                                                                                                                                                                                                          return false;
                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                        if ( matcher( elem, context, xml ) ) {
                                                                                                                                                                                                                                            return true;
                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                      if ( conv && s.throws ) {
                                                                                                                                                                                                                                          response = conv( response );
                                                                                                                                                                                                                                      } else {
                                                                                                                                                                                                                                          try {
                                                                                                                                                                                                                                              response = conv( response );
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                if ( node && node.value === id ) {
                                                                                                                                                                                                                                                    return [ elem ];
                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                  if (wgt) {
                                                                                                                                                                                                                                                      wgt = wgt.parent;
                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                if ( restoreDisplay == null ) {
                                                                                                                                                                                                                                                    display = style.display;
                                                                                                                                                                                                                                                    restoreDisplay = display === "none" ? "" : display;
                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                  while ( i-- ) {
                                                                                                                                                                                                                                                      groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
                                                                                                                                                                                                                                                          toSelector( groups[ i ] );
                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 45 mins to fix

                                                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 40 mins to fix

                                                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                          if ( !rneedsContext.test( selectors ) ) {
                                                                                                                                                                                                                                              for ( ; i < l; i++ ) {
                                                                                                                                                                                                                                                  cur = this[ i ];
                                                                                                                                                                                                                                                  let wgt = (hasZTag || hasZID) ? cur[zk.Widget._TARGET] || zk.Widget.$(cur, {exact: 1}) : false;
                                                                                                                                                                                                                                                  for ( ; cur && cur !== context; cur = ((hasZTag || hasZID) && wgt ? wgt.$n() : cur.parentNode)) {
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 40 mins to fix

                                                                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                if ( support.qsa &&
                                                                                                                                                                                                                                                    !nonnativeSelectorCache[ selector + " " ] &&
                                                                                                                                                                                                                                                    ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    // Support: IE 8 only
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.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 ];
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 40 mins to fix

                                                                                                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    if ( matcher[ expando ] ) {
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                        // Find the next relative operator (if any) for proper handling
                                                                                                                                                                                                                                                        j = ++i;
                                                                                                                                                                                                                                                        for ( ; j < len; j++ ) {
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 40 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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                          "CHILD": function( type, what, _argument, first, last ) {
                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                    function Tween( elem, options, prop, end, easing ) {
                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 35 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                    return elem.disabled === disabled;
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                  return event.which;
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                    return ret == null ? undefined : ret;
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                  return results;
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                                              return false;
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                return false;
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                return elem[ name ];
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      return this;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                            return true;
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                          return value;
                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                    return results;
                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                          return jQuery.makeArray( selector, this );
                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                        return results;
                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                              return compare & 4 ? -1 : 1;
                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                    return ret;
                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                      return false;
                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                            return false;
                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                                                                return diff === first || (diff % first === 0 && diff / first >= 0);
                                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                              return JSON.parse( data );
                                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                                    return 0;
                                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                              return data;
                                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                                          Found in zk/src/main/resources/web/js/zk/ext/jquery.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 zk/src/main/resources/web/js/zk/ext/jquery.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                                                                                                  if (w.widgetName == selector) {
                                                                                                                                                                                                                                                                                                                                      let elem = w.$n();
                                                                                                                                                                                                                                                                                                                                      if (!elem) {
                                                                                                                                                                                                                                                                                                                                          // treechildren may not have the value from $n()
                                                                                                                                                                                                                                                                                                                                          elem = w.parent.$n();
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 1350..1362

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

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                              for (var w = wgt.firstChild; w; w = w.nextSibling) {
                                                                                                                                                                                                                                                                                                                                  let elem = w.$n();
                                                                                                                                                                                                                                                                                                                                  if (!elem) {
                                                                                                                                                                                                                                                                                                                                      // treechildren may not have the value from $n()
                                                                                                                                                                                                                                                                                                                                      elem = w.parent.$n();
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 1365..1377

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

                                                                                                                                                                                                                                                                                                              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 wgt = wgt || elem[zk.Widget._TARGET] || zk.Widget.$(elem, {exact: 1}),
                                                                                                                                                                                                                                                                                                                              getParent = function (wgt) {
                                                                                                                                                                                                                                                                                                                                  if (dir === 'parentNode')
                                                                                                                                                                                                                                                                                                                                      return wgt.parent;
                                                                                                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 2645..2651

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

                                                                                                                                                                                                                                                                                                              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 wgt = wgt || elem[zk.Widget._TARGET] || zk.Widget.$(elem, {exact: 1}),
                                                                                                                                                                                                                                                                                                                                  getParent = function (wgt) {
                                                                                                                                                                                                                                                                                                                                      if (dir === 'parentNode')
                                                                                                                                                                                                                                                                                                                                          return wgt.parent;
                                                                                                                                                                                                                                                                                                                                      else
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 2603..2609

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

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                  preventDefault: function() {
                                                                                                                                                                                                                                                                                                                      var e = this.originalEvent;
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                      this.isDefaultPrevented = returnTrue;
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 6086..6094

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                  stopPropagation: function() {
                                                                                                                                                                                                                                                                                                                      var e = this.originalEvent;
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                      this.isPropagationStopped = returnTrue;
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 6077..6085

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 59.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                      if ( isFunction( value ) ) {
                                                                                                                                                                                                                                                                                                                          return this.each( function( j ) {
                                                                                                                                                                                                                                                                                                                              jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
                                                                                                                                                                                                                                                                                                                          } );
                                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 8626..8630

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 57.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                      if ( isFunction( value ) ) {
                                                                                                                                                                                                                                                                                                                          return this.each( function( j ) {
                                                                                                                                                                                                                                                                                                                              jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
                                                                                                                                                                                                                                                                                                                          } );
                                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 8589..8593

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 57.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                      "even": createPositionalPseudo( function( matchIndexes, length ) {
                                                                                                                                                                                                                                                                                                                          var i = 0;
                                                                                                                                                                                                                                                                                                                          for ( ; i < length; i += 2 ) {
                                                                                                                                                                                                                                                                                                                              matchIndexes.push( i );
                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 2463..2469

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                      "odd": createPositionalPseudo( function( matchIndexes, length ) {
                                                                                                                                                                                                                                                                                                                          var i = 1;
                                                                                                                                                                                                                                                                                                                          for ( ; i < length; i += 2 ) {
                                                                                                                                                                                                                                                                                                                              matchIndexes.push( i );
                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 2455..2461

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 54.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                                          if (!elem[zk.Widget._TARGET]) {
                                                                                                                                                                                                                                                                                                                                              elem[zk.Widget._TARGET] = elem[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                                                                                                                                                              delete elem[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 3592..3595

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

                                                                                                                                                                                                                                                                                                              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 (cur[zk.Widget._CURRENT_TARGET]) {
                                                                                                                                                                                                                                                                                                                                          cur[zk.Widget._TARGET] = cur[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                                                                                                                                                          delete cur[zk.Widget._CURRENT_TARGET];
                                                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 2996..2999

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

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                          for ( i = 0, l = srcElements.length; i < l; i++ ) {
                                                                                                                                                                                                                                                                                                                              fixInput( srcElements[ i ], destElements[ i ] );
                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 6505..6507

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                                                                              for ( i = 0, l = srcElements.length; i < l; i++ ) {
                                                                                                                                                                                                                                                                                                                                  cloneCopyEvent( srcElements[ i ], destElements[ i ] );
                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                                                                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                                              zk/src/main/resources/web/js/zk/ext/jquery.js on lines 6494..6496

                                                                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                                                                              This issue has a mass of 48.

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

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

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

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

                                                                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                                                                              Further Reading

                                                                                                                                                                                                                                                                                                              There are no issues that match your filters.

                                                                                                                                                                                                                                                                                                              Category
                                                                                                                                                                                                                                                                                                              Status