phodal/diaonan

View on GitHub

Showing 150 of 191 total issues

Avoid deeply nested control flow statements.
Open

                for (p in table[state]) if (this.terminals_[p] && p > 2) {
                    expected.push("'"+this.terminals_[p]+"'");
                }
Severity: Major
Found in app/assets/js/jsonlint.js - About 45 mins to fix

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

    function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
            dataType /* internal */, inspected /* internal */ ) {
    Severity: Minor
    Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                  if ( setClass.indexOf( " " + classNames[ c ] + " " ) < 0 ) {
                                      setClass += classNames[ c ] + " ";
                                  }
                              }
      Severity: Major
      Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ( selMatch[ sel ] === undefined ) {
                                    selMatch[ sel ] = handleObj.needsContext ?
                                        jQuery( sel, this ).index( cur ) >= 0 :
                                        jQuery.find( sel, this, null, [ cur ] ).length;
                                }
        Severity: Major
        Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if ( elem && elem.parentNode ) {
                                  // Handle the case where IE, Opera, and Webkit return items
                                  // by name instead of ID
                                  if ( elem.id === m ) {
                                      results.push( elem );
          Severity: Major
          Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if ( elem.sizset ) {
                                            return elem;
                                        }
            Severity: Major
            Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if ( copyIsArray ) {
                                      copyIsArray = false;
                                      clone = src && jQuery.isArray(src) ? src : [];
              
                                  } else {
              Severity: Major
              Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                        contains( context, elem ) && elem.id === m ) {
                                        results.push( elem );
                                        return results;
                                    }
                Severity: Major
                Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if ( !status && s.isLocal && !s.crossDomain ) {
                                                          status = responses.text ? 200 : 404;
                                                      // IE - #1450: sometimes returns 1223 when it should be 204
                                                      } else if ( status === 1223 ) {
                                                          status = 204;
                  Severity: Major
                  Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if ( name in thisCache ) {
                                                name = [ name ];
                                            } else {
                                                name = name.split(" ");
                                            }
                    Severity: Major
                    Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              for ( j = tbody.length - 1; j >= 0 ; --j ) {
                                                  if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                      tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                  }
                                              }
                      Severity: Major
                      Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if ( deleteExpando ) {
                                                    delete elem[ internalKey ];
                        
                                                } else if ( elem.removeAttribute ) {
                                                    elem.removeAttribute( internalKey );
                        Severity: Major
                        Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              for ( conv2 in converters ) {
                          
                                                  // If conv2 outputs current
                                                  tmp = conv2.split(" ");
                                                  if ( tmp[ 1 ] === current ) {
                          Severity: Major
                          Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                                if ( xhr.readyState !== 4 ) {
                                                                    xhr.abort();
                                                                }
                            Severity: Major
                            Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if ( !xhrCallbacks ) {
                                                              xhrCallbacks = {};
                                                              jQuery( window ).unload( xhrOnUnloadAbort );
                                                          }
                              Severity: Major
                              Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if ( xhrOnUnloadAbort ) {
                                                                        delete xhrCallbacks[ handle ];
                                                                    }
                                Severity: Major
                                Found in app/assets/js/jquery-1.8.2.js - About 45 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
                                  
                                                      // Don't re-trigger an onFOO event when we call its FOO() method
                                                      old = elem[ ontype ];
                                  
                                  
                                  Severity: Major
                                  Found in app/assets/js/jquery-1.8.2.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                if ( matcher[ expando ] ) {
                                                    // Find the next relative operator (if any) for proper handling
                                                    j = ++i;
                                                    for ( ; j < len; j++ ) {
                                                        if ( Expr.relative[ tokens[j].type ] ) {
                                    Severity: Major
                                    Found in app/assets/js/jquery-1.8.2.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                      if ( !jQuery.support.opacity ) {
                                          jQuery.cssHooks.opacity = {
                                              get: function( elem, computed ) {
                                                  // IE uses filters for opacity
                                                  return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
                                      Severity: Major
                                      Found in app/assets/js/jquery-1.8.2.js - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
                                                    return;
                                                }
                                        Severity: Major
                                        Found in app/assets/js/jquery-1.8.2.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language