shuoyao/BirdGo

View on GitHub

Showing 143 of 169 total issues

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

                            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

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

        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 ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                          return true;
                                      }

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

              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 ( 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 ( typeof xhr.responseText === "string" ) {
                                                        responses.text = xhr.responseText;
                                                    }

                      Avoid deeply nested control flow statements.
                      Open

                                                      if ( !status && options.isLocal && !options.crossDomain ) {
                                                          status = responses.text ? 200 : 404;
                      
                                                      // IE - #1450: sometimes returns 1223 when it should be 204
                                                      } else if ( status === 1223 ) {

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

                            init: function( elem, options, prop, end, easing, unit ) {

                          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

                                      if (element.data('params')) data = data + '&' + element.data('params');

                              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 ( 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 ( xhr.readyState !== 4 ) {
                                                                      xhr.abort();
                                                                  }

                                    Avoid deeply nested control flow statements.
                                    Open

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

                                      Avoid deeply nested control flow statements.
                                      Open

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

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( ( event.result = ret ) === false ) {
                                                                    event.preventDefault();
                                                                    event.stopPropagation();
                                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language