DamageStudios/rims

View on GitHub

Showing 186 of 250 total issues

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

    offset: function( options ) {
        if ( arguments.length ) {
            return options === undefined ?
                this :
                this.each( function( i ) {

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

      ScrollSpy.prototype.refresh = function () {
        var offsetMethod = 'offset'
        var offsetBase   = 0
    
        if (!$.isWindow(this.$scrollElement[0])) {

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

        Inputmask.prototype.init = function() {
          var defs = this.options.definitions
          var len = this.mask.length
      
          this.tests = [] 

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

          Inputmask.prototype.init = function() {
            var defs = this.options.definitions
            var len = this.mask.length
        
            this.tests = [] 
        Severity: Minor
        Found in app/assets/javascripts/jasny-bootstrap.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

              if ( support.matchesSelector && documentIsHTML &&
                  !compilerCache[ expr + " " ] &&
                  ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                  ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
          
          

            Consider simplifying this complex logical expression.
            Open

                    if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                            support.getById && context.nodeType === 9 && documentIsHTML &&
                            Expr.relative[ tokens[1].type ] ) {
            
                        context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];

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

              var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {

                Avoid deeply nested control flow statements.
                Open

                                        while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                                            cur = cur.replace( " " + clazz + " ", " " );
                                        }

                  Avoid deeply nested control flow statements.
                  Open

                                                  if ( !status && options.isLocal && !options.crossDomain ) {
                                                      status = responses.text ? 200 : 404;
                  
                                                  // IE - #1450: sometimes returns 1223 when it should be 204
                                                  } else if ( status === 1223 ) {

                    Avoid deeply nested control flow statements.
                    Open

                                    } else if ( copy !== undefined ) {
                                        target[ name ] = copy;
                                    }

                      Avoid deeply nested control flow statements.
                      Open

                                              if ( (elem = matcherOut[i]) ) {
                                                  // Restore matcherIn since elem is not yet a final match
                                                  temp.push( (matcherIn[i] = elem) );
                                              }

                        Avoid deeply nested control flow statements.
                        Open

                                                if ( elem.id !== match[ 2 ] ) {
                                                    return rootjQuery.find( selector );
                                                }

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                      cur += clazz + " ";
                                                  }

                            Avoid deeply nested control flow statements.
                            Open

                                                if ( name in thisCache ) {
                                                    name = [ name ];
                                                } else {
                                                    name = name.split( " " );
                                                }

                              Avoid deeply nested control flow statements.
                              Open

                                                  while ( i-- ) {
                                                      groups[i] = nidselect + " " + toSelector( groups[i] );
                                                  }

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if ( ( ofType ?
                                                                        node.nodeName.toLowerCase() === name :
                                                                        node.nodeType === 1 ) &&
                                                                        ++diff ) {
                                
                                

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              if ( !(unmatched[i] || setMatched[i]) ) {
                                                                  setMatched[i] = pop.call( results );
                                                              }

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if ( ( event.result = ret ) === false ) {
                                                                event.preventDefault();
                                                                event.stopPropagation();
                                                            }

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ( matches[ sel ] === undefined ) {
                                                                  matches[ sel ] = handleObj.needsContext ?
                                                                      jQuery( sel, this ).index( cur ) > -1 :
                                                                      jQuery.find( sel, this, null, [ cur ] ).length;
                                                              }

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( matches[ sel ] ) {
                                                                    matches.push( handleObj );
                                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language