phodal/diaonan

View on GitHub

Showing 150 of 191 total issues

Consider simplifying this complex logical expression.
Open

                if ( unit !== "px" && start ) {
                    // Iteratively approximate from a nonzero starting point
                    // Prefer the current property, because this process will be trivial if it uses the same units
                    // Fallback to end or a simple constant
                    start = jQuery.css( tween.elem, prop, true ) || end || 1;
Severity: Major
Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

    Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
    Severity: Major
    Found in app/assets/js/jquery-1.8.2.js - About 50 mins to fix

      Function performAction has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
      Severity: Major
      Found in app/assets/js/jsonlint.js - About 50 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 ( !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 ( !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

                                      while ( className.indexOf(" " + removes[ c ] + " ") >= 0 ) {
                                          className = className.replace( " " + removes[ 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.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

                                    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

                      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

                                                for ( type in data.events ) {
                                                    if ( special[ type ] ) {
                                                        jQuery.event.remove( elem, type );
                        
                                                    // This is a shortcut to avoid jQuery.event.remove's overhead
                        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

                            Avoid deeply nested control flow statements.
                            Open

                                                                if ( xml && xml.documentElement /* #4958 */ ) {
                                                                    responses.xml = xml;
                                                                }
                            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 ( ret === false ) {
                                                          event.preventDefault();
                                                          event.stopPropagation();
                                                      }
                              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 ( !(unmatched[i] || setMatched[i]) ) {
                                                                setMatched[i] = pop.call( 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 ( 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 ( elem === node ) {
                                                                        break;
                                                                    }
                                    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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language