railsfrance/railsfrance.org

View on GitHub

Showing 166 of 228 total issues

Avoid deeply nested control flow statements.
Open

                        if ( jQuery.isPlainObject( context ) ) {
                            selector = [ document.createElement( ret[1] ) ];
                            jQuery.fn.attr.call( selector, context, true );

                        } else {
Severity: Major
Found in app/assets/javascripts/lib/jquery-1.6.4.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 app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ( relativeHierarchySelector && hasParent ) {
                              context = context.parentNode;
                          }
      Severity: Major
      Found in app/assets/javascripts/lib/jquery-1.6.4.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/javascripts/lib/jquery-1.6.4.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 ] + " " ) ) {
                                          setClass += classNames[ c ] + " ";
                                      }
                                  }
          Severity: Major
          Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

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

              Avoid deeply nested control flow statements.
              Open

                              } else if ( copy !== undefined ) {
                                  target[ name ] = copy;
                              }
              Severity: Major
              Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if ( !match ) {
                                        anyFound = found = true;
                
                                    } else if ( match === true ) {
                                        continue;
                Severity: Major
                Found in app/assets/javascripts/lib/jquery-1.6.4.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/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

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

                      Avoid deeply nested control flow statements.
                      Open

                                                  } else if (aph == 12) h = 12;
                                                  else h = aph + 12;
                      Severity: Major
                      Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.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 app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( ret[r] === ret[n] ) {
                                                      ret.splice(n--, 1);
                                                      break;
                                                  }
                          Severity: Major
                          Found in app/assets/javascripts/lib/jquery-1.6.4.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/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if(this.second > this._defaults.secondMax) this.second = this._defaults.secondMax;
                              Severity: Major
                              Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.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 app/assets/javascripts/lib/jquery-1.6.4.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 app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( !inplace ) {
                                                            curLoop = result;
                                                        }
                                    Severity: Major
                                    Found in app/assets/javascripts/lib/jquery-1.6.4.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 app/assets/javascripts/lib/jquery-1.6.4.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 app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language