angelakuo/citydogshare

View on GitHub

Showing 3,976 of 3,976 total issues

Avoid deeply nested control flow statements.
Open

                                        if (
                                            button.hasClass(tm + '-state-active') ||
                                            button.hasClass(tm + '-state-disabled')
                                        ) {
                                            button.removeClass(tm + '-state-hover');

    Avoid deeply nested control flow statements.
    Open

                  else if(module.is.bottom() ) {
    
                    // top edge
                    if( (scroll.bottom - element.height) < element.top) {
                      module.debug('Bottom fixed rail has reached top of container');

      Avoid deeply nested control flow statements.
      Open

                              if (startTime) {
                                  start = start.time(startTime);
                              }

        Avoid deeply nested control flow statements.
        Open

                        if( scroll.top < element.top ) {
                          module.debug('Fixed element reached top of container');
                          module.setInitialPosition();
                        }
                        else if( (element.height + scroll.top - elementScroll) > context.bottom ) {

          Avoid deeply nested control flow statements.
          Open

                                  if(response && response.error !== undefined) {
                                    errorMessage = response.error;
                                  }

            Avoid deeply nested control flow statements.
            Open

                          if(settings.pushing) {
                            if(module.is.bound() && scroll.bottom < context.bottom ) {
                              module.debug('Fixing bottom attached element to bottom of browser.');
                              module.fixBottom();
                            }

              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 ( ofType ?
                                                        node.nodeName.toLowerCase() === name :
                                                        node.nodeType === 1 ) {
                
                                                        return false;

                  Avoid deeply nested control flow statements.
                  Open

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

                    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 ( match[2] ) {
                                          push.apply( results, context.getElementsByTagName( selector ) );
                                          return results;
                      
                                      // Class selector

                        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 ( copyIsArray ) {
                                                  copyIsArray = false;
                                                  clone = src && jQuery.isArray( src ) ? src : [];
                          
                                              } else {

                            Avoid deeply nested control flow statements.
                            Open

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

                              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

                                                        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 ( 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 ( (nid = context.getAttribute( "id" )) ) {
                                                            nid = nid.replace( rcssescape, fcssescape );
                                                        } else {
                                                            context.setAttribute( "id", (nid = expando) );
                                                        }

                                      Avoid deeply nested control flow statements.
                                      Open

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

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