railsfrance/railsfrance.org

View on GitHub

Showing 166 of 228 total issues

Function > has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        ">": function( checkSet, part ) {
            var elem,
                isPartStr = typeof part === "string",
                i = 0,
                l = checkSet.length;
Severity: Minor
Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

    Function handle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        handle: function( event ) {
            event = jQuery.event.fix( event || window.event );
            // Snapshot the handlers list since a called handler may add/remove events.
            var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0),
                run_all = !event.exclusive && !event.namespace,
    Severity: Minor
    Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr to fix

      Function getArraySample has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function getArraySample(array, start, length, direction){
                  // initialize empty array
                  var sample = [];
                  // clone the length argument
                  var loopLength = length;
      Severity: Minor
      Found in app/assets/javascripts/lib/jquery.bxSlider.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {
                    return;
                }
        Severity: Major
        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 1 hr 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

            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

              Avoid deeply nested control flow statements.
              Open

                                      if ( !relativeHierarchySelector || hasParent ) {
                                          return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
                                      }
              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

                  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 ( 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

                                          if ( !isXML ) {
                                              elem.sizcache = doneName;
                                              elem.sizset = i;
                                          }
                      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

                                                  if ( name.indexOf( "data-" ) === 0 ) {
                                                      name = jQuery.camelCase( name.substring(5) );
                          
                                                      dataAttr( this[0], name, data[ name ] );
                                                  }
                          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.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 ( display === "inline" ) {
                                                              this.style.display = "inline-block";
                              
                                                          } else {
                                                              this.style.display = "inline";
                              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 ( typeof cur !== "string" ) {
                                                        if ( elem === cur ) {
                                                            match = true;
                                                            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 ( !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

                                                            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

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if (aph == 12) h = 0;
                                                                      else h = aph;
                                      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 ( special.remove ) {
                                                                    special.remove.call( elem, handleObj );
                                                                }
                                        Severity: Major
                                        Found in app/assets/javascripts/lib/jquery-1.6.4.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language