balanced/rentmybikes-rails

View on GitHub

Showing 134 of 150 total issues

Avoid deeply nested control flow statements.
Open

                    if ( (seed = find(
                        token.matches[0].replace( runescape, funescape ),
                        rsibling.test( tokens[0].type ) && context.parentNode || context
                    )) ) {

Severity: Major
Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if ( hasScripts ) {
                                jQuery.merge( scripts, getAll( node, "script" ) );
                            }
    Severity: Major
    Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

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

          init: function( elem, options, prop, end, easing, unit ) {
      Severity: Minor
      Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                        if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                                            // Cache the index of each encountered element
                                            if ( useCache ) {
                                                (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                                            }
        Severity: Major
        Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  for ( match in context ) {
                                      // Properties of context are called as methods if possible
                                      if ( jQuery.isFunction( this[ match ] ) ) {
                                          this[ match ]( context[ match ] );
          
          
          Severity: Major
          Found in public/assets/application-e688f6a6a31635feee665e7f52483711.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 public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if ( (data = cache[1]) === true || data === cachedruns ) {
                                              return data === true;
                                          }
              Severity: Major
              Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                            if ( cache[1] === true ) {
                                                return true;
                                            }
                Severity: Major
                Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if ( xhrOnUnloadAbort ) {
                                                          delete xhrCallbacks[ handle ];
                                                      }
                  Severity: Major
                  Found in public/assets/application-e688f6a6a31635feee665e7f52483711.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/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                      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 public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                                contains( context, elem ) && elem.id === m ) {
                                                results.push( elem );
                                                return results;
                                            }
                        Severity: Major
                        Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                                  return false;
                                                              }
                          Severity: Major
                          Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if ( Expr.relative[ tokens[j].type ] ) {
                                                    break;
                                                }
                            Severity: Major
                            Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( matches[ sel ] === undefined ) {
                                                          matches[ sel ] = handleObj.needsContext ?
                                                              jQuery( sel, this ).index( cur ) >= 0 :
                                                              jQuery.find( sel, this, null, [ cur ] ).length;
                                                      }
                              Severity: Major
                              Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( matches[ sel ] ) {
                                                            matches.push( handleObj );
                                                        }
                                Severity: Major
                                Found in public/assets/application-e688f6a6a31635feee665e7f52483711.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 public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            while ( j-- ) {
                                                                if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
                                                                    elem.removeChild( tbody );
                                                                }
                                                            }
                                    Severity: Major
                                    Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ( rscriptType.test( node.type || "" ) &&
                                                                  !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
                                      
                                                                  if ( node.src ) {
                                                                      // Hope ajax is available...
                                      Severity: Major
                                      Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( deleteExpando ) {
                                                                    delete elem[ internalKey ];
                                        
                                                                } else if ( typeof elem.removeAttribute !== core_strundefined ) {
                                                                    elem.removeAttribute( internalKey );
                                        Severity: Major
                                        Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language