ianheggie/cruisecontrol.rb

View on GitHub

Showing 679 of 1,357 total issues

Avoid deeply nested control flow statements.
Open

                    for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
                        if ( item ) {
                            found = filter( item, match, i, curLoop );
                            var pass = not ^ !!found;

Severity: Major
Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if ( !old ) {
                                oldContext.removeAttribute( "id" );
                            }
    Severity: Major
    Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
                              conv2 = converters[ tmp[1] + " " + current ];
                              if ( conv2 ) {
                                  conv1 = converters[ conv1 ];
                                  if ( conv1 === true ) {
      Severity: Major
      Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if ( !xhrCallbacks ) {
                                        xhrCallbacks = {};
                                        jQuery( window ).unload( xhrOnUnloadAbort );
                                    }
        Severity: Major
        Found in public/javascripts/jquery-1.6.1.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 public/javascripts/jquery-1.6.1.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if ( special[ type ] ) {
                                        jQuery.event.remove( elem, type );
            
                                    // This is a shortcut to avoid jQuery.event.remove's overhead
                                    } else {
            Severity: Major
            Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

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

                      ATTR: function( match, curLoop, inplace, result, not, isXML ) {
              Severity: Minor
              Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

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

                function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                Severity: Minor
                Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

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

                  function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                  Severity: Minor
                  Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if ( elem.id !== match[2] ) {
                                                return rootjQuery.find( selector );
                                            }
                    Severity: Major
                    Found in public/javascripts/jquery-1.6.1.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 public/javascripts/jquery-1.6.1.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 public/javascripts/jquery-1.6.1.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 public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
                                                        className = className.replace(" " + classNames[c] + " ", " ");
                                                    }
                            Severity: Major
                            Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( pos == null ) {
                                                          eventType.splice( j--, 1 );
                                                      }
                              Severity: Major
                              Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) {
                                                            ret.push({ selector: selector, elem: cur, level: level });
                                                        }
                                Severity: Major
                                Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if ( elem && elem.parentNode ) {
                                                              // Handle the case where IE and Opera return items
                                                              // by name instead of ID
                                                              if ( elem.id === match[3] ) {
                                                                  return makeArray( [ elem ], extra );
                                  Severity: Major
                                  Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( relativeHierarchySelector && hasParent ) {
                                                            context = context.parentNode;
                                                        }
                                    Severity: Major
                                    Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ( !relativeHierarchySelector || hasParent ) {
                                                                  return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
                                                              }
                                      Severity: Major
                                      Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( related && jQuery.contains( elem, related ) ) {
                                                                related = elem;
                                                            }
                                        Severity: Major
                                        Found in public/javascripts/jquery-1.6.1.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language