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 addClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        addClass: function( value ) {
            var classes, elem, cur, clazz, j,
                i = 0,
                len = this.length,
                proceed = typeof value === "string" && value;
    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 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 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 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

                                                              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

                                                    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

                                                      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 ( 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 ( !xhrCallbacks ) {
                                                                  xhrCallbacks = {};
                                                                  jQuery( window ).unload( xhrOnUnloadAbort );
                                                              }
                                  Severity: Major
                                  Found in public/assets/application-e688f6a6a31635feee665e7f52483711.js - About 45 mins to fix

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

                                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                    Severity: Minor
                                    Found in public/assets/application-e688f6a6a31635feee665e7f52483711.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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language