Showing 4,841 of 7,782 total issues

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

                        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 (!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 (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 ( 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

                                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

              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 = ++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 ( ( 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 ( 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 ( !( 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

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

                                yearStr,
                                monthStr,
                                dayStr,
                                hourStr,
                                minuteStr,
                        Severity: Minor
                        Found in zk/src/main/resources/web/js/zk/ext/moment.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

                                                                  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

                                                            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 ( 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 ( 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

                                                              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 ( ( 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language