mar10/fancytree

View on GitHub

Showing 700 of 700 total issues

Avoid deeply nested control flow statements.
Open

                if (classNameHasPass || classNameHasSkipped) {
                  hiddenTests.push(test);
                }
Severity: Major
Found in lib/qunit.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    if (x1 >= x2) {
                      // Overlap detected.
                      return this.diffBisectSplit(text1, text2, x1, y1, deadline);
                    }
    Severity: Major
    Found in lib/qunit.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 lib/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 lib/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 lib/jquery.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                  if (searchLowerCode === searchLowerCodeNew) continue; // doesn't make sense to transpose a repeat char
            Severity: Major
            Found in lib/qunit.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 lib/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

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

                  Avoid deeply nested control flow statements.
                  Open

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

                    Avoid deeply nested control flow statements.
                    Open

                                    while (level < prevLevel) {
                                      unnest += '</ul>';
                                      prevLevel--;
                                    }
                    Severity: Major
                    Found in lib/jquery.planize.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                    } else if (level > prevLevel) {
                                      log(hLevelText + ', nesting because:' + level + '>' + prevLevel);
                                      toc += '<ul>' + elem;
                                    } else {
                                      log(hLevelText + ', same level (' + level + ')');
                      Severity: Major
                      Found in lib/jquery.planize.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                          if (commonlength !== 0) {
                                            if (pointer - countDelete - countInsert > 0 && diffs[pointer - countDelete - countInsert - 1][0] === DIFF_EQUAL) {
                                              diffs[pointer - countDelete - countInsert - 1][1] += textInsert.substring(0, commonlength);
                                            } else {
                                              diffs.splice(0, 0, [DIFF_EQUAL, textInsert.substring(0, commonlength)]);
                        Severity: Major
                        Found in lib/qunit.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                            if (commonlength !== 0) {
                                              diffs[pointer][1] = textInsert.substring(textInsert.length - commonlength) + diffs[pointer][1];
                                              textInsert = textInsert.substring(0, textInsert.length - commonlength);
                                              textDelete = textDelete.substring(0, textDelete.length - commonlength);
                                            }
                          Severity: Major
                          Found in lib/qunit.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 lib/jquery.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                    if (searchLowerCode === searchLowerCodeNew) continue; // doesn't make sense to transpose a repeat char
                              Severity: Major
                              Found in lib/qunit.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 lib/jquery.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (result.score > q.peek().score) q.replaceTop(result);
                                  Severity: Major
                                  Found in lib/qunit.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if (searchI === searchLen) {
                                                          successStrict = true;
                                                          break;
                                                        }
                                    Severity: Major
                                    Found in lib/qunit.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                      if (x1 >= x2) {
                                                        // Overlap detected.
                                                        return this.diffBisectSplit(text1, text2, x1, y1, deadline);
                                                      }
                                      Severity: Major
                                      Found in lib/qunit.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 lib/jquery.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language