balanced/rentmybikes-rails

View on GitHub

Showing 134 of 150 total issues

Function removeClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    removeClass: function( value ) {
        var classes, elem, cur, clazz, j,
            i = 0,
            len = this.length,
            proceed = arguments.length === 0 || typeof value === "string" && value;
Severity: Minor
Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

    Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        html: function( value ) {
            return jQuery.access( this, function( value ) {
                var elem = this[0] || {},
                    i = 0,
                    l = this.length;
    Severity: Minor
    Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

      Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          finish: function( type ) {
              if ( type !== false ) {
                  type = type || "fx";
              }
              return this.each(function() {
      Severity: Minor
      Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

        Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            fix: function( event ) {
                if ( event[ jQuery.expando ] ) {
                    return event;
                }
        
        
        Severity: Minor
        Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

          Method rent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            def rent(params = {})
              renter = params[:renter]
              user = params[:user] || User.find_by(customer_href: renter.href)
              user_id = user.nil? ? nil : user.id
          
          
          Severity: Minor
          Found in app/models/listing.rb - About 1 hr to fix

            Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function propFilter( props, specialEasing ) {
                var value, name, index, easing, hooks;
            
                // camelCase, specialEasing and expand cssHook pass
                for ( index in props ) {
            Severity: Minor
            Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

              Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      setup: function() {
              
                          if ( rformElems.test( this.nodeName ) ) {
                              // IE doesn't fire change on a check/radio until blur; trigger it on click
                              // after a propertychange. Eat the blur-change in special.change.handle.
              Severity: Minor
              Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

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

                    off: function( types, selector, fn ) {
                        var handleObj, type;
                        if ( types && types.preventDefault && types.handleObj ) {
                            // ( event )  dispatched jQuery.Event
                            handleObj = types.handleObj;
                Severity: Minor
                Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

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

                  jQuery.fn.offset = function( options ) {
                      if ( arguments.length ) {
                          return options === undefined ?
                              this :
                              this.each(function( i ) {
                  Severity: Minor
                  Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                    if ( jQuery.expr && jQuery.expr.filters ) {
                        jQuery.expr.filters.hidden = function( elem ) {
                            // Support: Opera <= 12.12
                            // Opera reports offsetWidths and offsetHeights less than zero on some elements
                            return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
                    Severity: Major
                    Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                      if ( unit !== "px" && start ) {
                                          // Iteratively approximate from a nonzero starting point
                                          // Prefer the current property, because this process will be trivial if it uses the same units
                                          // Fallback to end or a simple constant
                                          start = jQuery.css( tween.elem, prop, true ) || end || 1;
                      Severity: Major
                      Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 1 hr to fix

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

                            access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                        Severity: Major
                        Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 50 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          } else if ( copy !== undefined ) {
                                              target[ name ] = copy;
                                          }
                          Severity: Major
                          Found in public/assets/application-e688f6a6a31635feee665e7f52483711.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 public/assets/application-e688f6a6a31635feee665e7f52483711.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 public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                            cur += clazz + " ";
                                                        }
                                Severity: Major
                                Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                      if ( typeof xhr.responseText === "string" ) {
                                                                          responses.text = xhr.responseText;
                                                                      }
                                  Severity: Major
                                  Found in public/assets/application-e688f6a6a31635feee665e7f52483711.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 public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if ( !xhrCallbacks ) {
                                                                      xhrCallbacks = {};
                                                                      jQuery( window ).unload( xhrOnUnloadAbort );
                                                                  }
                                      Severity: Major
                                      Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                                                    cur = cur.replace( " " + clazz + " ", " " );
                                                                }
                                        Severity: Major
                                        Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language