concord-consortium/rigse

View on GitHub

Showing 2,136 of 2,138 total issues

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 rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if ( elem.sizset ) {
                                    return elem;
                                }
    Severity: Major
    Found in rails/app/assets/javascripts/jquery/jquery.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 rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                            if ( xhr.readyState !== 4 ) {
                                                xhr.abort();
                                            }
        Severity: Major
        Found in rails/app/assets/javascripts/jquery/jquery.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 rails/app/assets/javascripts/prototype.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if ( !name.indexOf( "data-" ) ) {
                                        name = jQuery.camelCase( name.substring(5) );
            
                                        dataAttr( elem, name, data[ name ] );
                                    }
            Severity: Major
            Found in rails/app/assets/javascripts/jquery/jquery.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 rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if ( conv && s["throws"] ) {
                                        response = conv( response );
                                    } else {
                                        try {
                                            response = conv( response );
                Severity: Major
                Found in rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                if ( (elem = matcherOut[i]) ) {
                                  temp.push( (matcherIn[i] = elem) );
                                }
                  Severity: Major
                  Found in rails/app/assets/javascripts/prototype.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                if ( Expr.relative[ tokens[j].type ] ) {
                                  break;
                                }
                    Severity: Major
                    Found in rails/app/assets/javascripts/prototype.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 rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                        if ( elem === node ) {
                                                            break;
                                                        }
                        Severity: Major
                        Found in rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if ( elem && elem.parentNode ) {
                                        if ( elem.id === m ) {
                                          results.push( elem );
                                          return results;
                                        }
                          Severity: Major
                          Found in rails/app/assets/javascripts/prototype.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 rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( selMatch[ sel ] ) {
                                                          matches.push( handleObj );
                                                      }
                              Severity: Major
                              Found in rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                                  return true;
                                                }
                                Severity: Major
                                Found in rails/app/assets/javascripts/prototype.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 rails/app/assets/javascripts/jquery/jquery.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

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

                                      Avoid deeply nested control flow statements.
                                      Open

                                            if (ws && hs) {
                                              var deltaLeft = -min.x;
                                              var deltaTop = -min.y;
                                              lineStr.push('<g_vml_:fill',
                                                           ' position="',
                                      Severity: Major
                                      Found in rails/app/assets/javascripts/flotr/excanvas.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                  if(options.legend.backgroundOpacity != 0.0){
                                                                      /**
                                                                       * Put in the transparent background separately to avoid blended labels and
                                                                       * label boxes.
                                                                       */
                                        Severity: Major
                                        Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language