CodeforLeipzig/stadtratmonitor

View on GitHub

Showing 321 of 611 total issues

Avoid deeply nested control flow statements.
Open

                            if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                return true;
                            }

    Avoid deeply nested control flow statements.
    Open

                            if ( elem.id !== match[ 2 ] ) {
                                return rootjQuery.find( selector );
                            }

      Avoid deeply nested control flow statements.
      Open

                          if ( Expr.relative[ tokens[j].type ] ) {
                              break;
                          }

        Avoid deeply nested control flow statements.
        Open

                            if ( name in thisCache ) {
                                name = [ name ];
                            } else {
                                name = name.split( " " );
                            }

          Avoid deeply nested control flow statements.
          Open

                              while ( j-- ) {
                                  if ( jQuery.nodeName( ( tbody = elem.childNodes[ j ] ), "tbody" ) &&
                                      !tbody.childNodes.length ) {
          
                                      elem.removeChild( tbody );

            Avoid deeply nested control flow statements.
            Open

                            } else if ( match[2] ) {
                                push.apply( results, context.getElementsByTagName( selector ) );
                                return results;
            
                            // Class selector

              Avoid deeply nested control flow statements.
              Open

                                  if ( (nid = context.getAttribute( "id" )) ) {
                                      nid = nid.replace( rescape, "\\$&" );
                                  } else {
                                      context.setAttribute( "id", (nid = expando) );
                                  }

                Avoid deeply nested control flow statements.
                Open

                                        if ( nid === expando ) {
                                            context.removeAttribute( "id" );
                                        }

                  Avoid deeply nested control flow statements.
                  Open

                                          if ( attrs[ i ] ) {
                                              name = attrs[ i ].name;
                                              if ( name.indexOf( "data-" ) === 0 ) {
                                                  name = jQuery.camelCase( name.slice( 5 ) );
                                                  dataAttr( elem, name, data[ name ] );

                    Avoid deeply nested control flow statements.
                    Open

                                                        if ( ofType ?
                                                            node.nodeName.toLowerCase() === name :
                                                            node.nodeType === 1 ) {
                    
                                                            return false;

                      Avoid deeply nested control flow statements.
                      Open

                                              if ( ( event.result = ret ) === false ) {
                                                  event.preventDefault();
                                                  event.stopPropagation();
                                              }

                        Avoid deeply nested control flow statements.
                        Open

                                            if (s2 = d3[c2], u2.parser(s2) === g2) {
                                              i2 = true;
                                              break;
                                            }

                          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) );
                                                  }

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

                            function on( elem, types, selector, data, fn, one ) {

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( matches[ sel ] === undefined ) {
                                                          matches[ sel ] = handleObj.needsContext ?
                                                              jQuery( sel, this ).index( cur ) > -1 :
                                                              jQuery.find( sel, this, null, [ cur ] ).length;
                                                      }

                                Avoid deeply nested control flow statements.
                                Open

                                                    if ( copyIsArray ) {
                                                        copyIsArray = false;
                                                        clone = src && jQuery.isArray( src ) ? src : [];
                                
                                                    } else {

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              if ( !(unmatched[i] || setMatched[i]) ) {
                                                                  setMatched[i] = pop.call( results );
                                                              }

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            for ( match in context ) {
                                    
                                                                // Properties of context are called as methods if possible
                                                                if ( jQuery.isFunction( this[ match ] ) ) {
                                                                    this[ match ]( context[ match ] );

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          while ( i-- ) {
                                                              groups[i] = nidselect + " " + toSelector( groups[i] );
                                                          }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( nodeType === 9 ) {
                                                                if ( (elem = context.getElementById( m )) ) {
                                        
                                                                    // Support: IE, Opera, Webkit
                                                                    // TODO: identify versions
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language