railsfrance/railsfrance.org

View on GitHub

Showing 166 of 228 total issues

Avoid deeply nested control flow statements.
Open

                                    if ( xhr.readyState !== 4 ) {
                                        xhr.abort();
                                    }
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 ( xml && xml.documentElement /* #4958 */ ) {
                                            responses.xml = xml;
                                        }
    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.secondMin) this.second = this._defaults.secondMin;
      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 (h == 0) tmph = 12 +'a';
                                else if (h < 12) tmph += 'a';
                                else tmph += 'p';
        Severity: Major
        Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 45 mins to fix

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

              access: function( elems, key, value, exec, fn, pass ) {
          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 ( !anyFound ) {
                                    return [];
                                }
            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 ( !old ) {
                                          oldContext.removeAttribute( "id" );
                                      }
              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(options.mode == 'fade'){
                                        setChildrenFade();
                                    }                    
                Severity: Major
                Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                              if(slideLoop){
                                                  $parent.css('top', '-'+getSlidePosition(currentSlide, 'top')+'px');
                                              }
                  Severity: Major
                  Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                if(currentSlide < 0){
                                                    negativeOffset = (currentSlide % $children.length);
                                                    if(negativeOffset == 0){
                                                        currentSlide = 0;
                                                    }else{
                    Severity: Major
                    Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  if(slideLoop){
                                                      $parent.css('top', '-'+getSlidePosition(currentSlide, 'top')+'px');
                                                  }
                      Severity: Major
                      Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            }else if(options.mode == 'fade'){
                                                setChildrenFade();
                                            }                    
                        Severity: Major
                        Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 45 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                  } else if ( typeof value === "string" && !rnocache.test( value ) &&
                                      (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                                      !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
                          
                                      value = value.replace(rxhtmlTag, "<$1></$2>");
                          Severity: Major
                          Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if ((hour < defaults.hourMin || hour > defaults.hourMax) || (minute < defaults.minuteMin || minute > defaults.minuteMax) || (second < defaults.secondMin || second > defaults.secondMax)) {
                                        hour = defaults.hourMin;
                                        minute = defaults.minuteMin;
                                        second = defaults.secondMin;
                                    }
                            Severity: Major
                            Found in app/assets/javascripts/lib/jquery-ui-timepicker-addon.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                                              Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
                              
                                          ret = Sizzle.find( parts.shift(), context, contextXML );
                                          context = ret.expr ?
                              Severity: Major
                              Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
                                        return;
                                    }
                                Severity: Major
                                Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) ||
                                                      (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
                                                      type === "select-multiple" ) {
                                                      testChange.call( this, e );
                                                  }
                                  Severity: Major
                                  Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if ( s.crossDomain == null ) {
                                                parts = rurl.exec( s.url.toLowerCase() );
                                                s.crossDomain = !!( parts &&
                                                    ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                                                        ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
                                    Severity: Major
                                    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                      if ( jQuery.expr && jQuery.expr.filters ) {
                                          jQuery.expr.filters.hidden = function( elem ) {
                                              var width = elem.offsetWidth,
                                                  height = elem.offsetHeight;
                                      
                                      
                                      Severity: Major
                                      Found in app/assets/javascripts/lib/jquery-1.6.4.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/javascripts/lib/jquery-1.6.4.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language