angelakuo/citydogshare

View on GitHub

Showing 2,136 of 3,976 total issues

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 ( hasScripts ) {
    
                            // Support: Android<4.1, PhantomJS<2
                            // push.apply(_, arraylike) throws on ancient WebKit
                            jQuery.merge( scripts, getAll( node, "script" ) );

      Avoid deeply nested control flow statements.
      Open

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

        Avoid deeply nested control flow statements.
        Open

                            if ( conv && s.throws ) {
                                response = conv( response );
                            } else {
                                try {
                                    response = conv( response );

          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 ( Expr.relative[ tokens[j].type ] ) {
                                    break;
                                }

              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

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

                    Avoid deeply nested control flow statements.
                    Open

                                        if ( rscriptType.test( node.type || "" ) &&
                                            !dataPriv.access( node, "globalEval" ) &&
                                            jQuery.contains( doc, node ) ) {
                    
                                            if ( node.src ) {

                      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 ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                    cur += clazz + " ";
                                                }

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

                              function mutateEvents(events, clearEnd, allDay, dateDelta, durationDelta, miscProps) {

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( matches[ sel ] ) {
                                                        matches.push( handleObj );
                                                    }

                              Avoid deeply nested control flow statements.
                              Open

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

                                Avoid deeply nested control flow statements.
                                Open

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

                                  Avoid deeply nested control flow statements.
                                  Open

                                                  } else if ( copy !== undefined ) {
                                                      target[ name ] = copy;
                                                  }

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

                                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {

                                      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

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