angelakuo/citydogshare

View on GitHub

Showing 2,136 of 3,976 total issues

Avoid deeply nested control flow statements.
Open

                        if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                            cur += clazz + " ";
                        }

    Avoid deeply nested control flow statements.
    Open

                        if ( restoreDisplay == null ) {
                            display = style.display;
                            restoreDisplay = display === "none" ? "" : display;
                        }

      Avoid deeply nested control flow statements.
      Open

                              while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                                  cur = cur.replace( " " + clazz + " ", " " );
                              }

        Avoid deeply nested control flow statements.
        Open

                            for ( conv2 in converters ) {
        
                                // If conv2 outputs current
                                tmp = conv2.split( " " );
                                if ( tmp[ 1 ] === current ) {

          Avoid deeply nested control flow statements.
          Open

                        if (down) {
                          compare = compareDown;
                          declare = declareDown;
                        }

            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

              Avoid deeply nested control flow statements.
              Open

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

                Avoid deeply nested control flow statements.
                Open

                                        if ( !attributes && typeof elem.removeAttribute !== "undefined" ) {
                                            elem.removeAttribute( internalKey );
                
                                        // Webkit & Blink performance suffers when deleting properties
                                        // from DOM nodes, so set to undefined instead

                  Avoid deeply nested control flow statements.
                  Open

                              if (rest === 1) {
                                expandedIdx = vvarText + ".length - 1";
                              } else {
                                ivar = o.scope.freeVariable('i', {
                                  single: true

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

                        self.scheduleFunction = function(funcToCall, millis, params, recurring, timeoutKey, runAtMillis) {

                      Avoid deeply nested control flow statements.
                      Open

                                              if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                  cur += clazz + " ";
                                              }

                        Avoid deeply nested control flow statements.
                        Open

                                        if (func instanceof Code && func.bound) {
                                          this.boundFuncs.push(base);
                                          func.bound = false;
                                        }

                          Avoid deeply nested control flow statements.
                          Open

                                      if (obj instanceof Assign) {
                                        defaultValue = obj.value;
                                        obj = obj.variable;
                                      }

                            Avoid deeply nested control flow statements.
                            Open

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

                              Avoid deeply nested control flow statements.
                              Open

                                                  if ( !selector ) {
                                                      push.apply( results, seed );
                                                      return results;
                                                  }

                                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

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

                                      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 ( elem.id !== match[ 2 ] ) {
                                                                    return rootjQuery.find( selector );
                                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language