DamageStudios/rims

View on GitHub

Showing 186 of 250 total issues

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 ( name in thisCache ) {
                            name = [ name ];
                        } else {
                            name = name.split( " " );
                        }

      Avoid deeply nested control flow statements.
      Open

                          if ( hasScripts ) {
      
                              // Support: Android<4.1, PhantomJS<2
                              // push.apply(_, arraylike) throws on ancient WebKit
                              jQuery.merge( scripts, getAll( node, "script" ) );

        Avoid deeply nested control flow statements.
        Open

                                if ( !attributes && typeof elem.removeAttribute !== "undefined" ) {
                                    elem.removeAttribute( internalKey );
        
                                // Webkit & Blink performance suffers when deleting properties
                                // from DOM nodes, so set to undefined instead

          Consider simplifying this complex logical expression.
          Open

                      if ( matcher[ expando ] ) {
                          // Find the next relative operator (if any) for proper handling
                          j = ++i;
                          for ( ; j < len; j++ ) {
                              if ( Expr.relative[ tokens[j].type ] ) {

            Consider simplifying this complex logical expression.
            Open

                    if ( delegateCount && cur.nodeType &&
                        ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
            
                        /* jshint eqeqeq: false */
                        for ( ; cur != this; cur = cur.parentNode || this ) {

              Consider simplifying this complex logical expression.
              Open

              if ( !support.opacity ) {
                  jQuery.cssHooks.opacity = {
                      get: function( elem, computed ) {
              
                          // IE uses filters for opacity

                Consider simplifying this complex logical expression.
                Open

                    if ( ( !id || !cache[ id ] || ( !pvt && !cache[ id ].data ) ) &&
                        data === undefined && typeof name === "string" ) {
                        return;
                    }

                  Consider simplifying this complex logical expression.
                  Open

                          if ( s.crossDomain == null ) {
                              parts = rurl.exec( s.url.toLowerCase() );
                              s.crossDomain = !!( parts &&
                                  ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                      ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==

                    Consider simplifying this complex logical expression.
                    Open

                            if ( window.getComputedStyle ) {
                                divStyle = window.getComputedStyle( div );
                                pixelPositionVal = ( divStyle || {} ).top !== "1%";
                                reliableMarginLeftVal = ( divStyle || {} ).marginLeft === "2px";
                                boxSizingReliableVal = ( divStyle || { width: "4px" } ).width === "4px";

                      Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              "CHILD": function( type, what, argument, first, last ) {

                        Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function condense( unmatched, map, filter, context, xml ) {

                          Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  superMatcher = function( seed, context, xml, results, outermost ) {

                            Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                add: function( elem, types, handler, data, selector ) {

                              Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  remove: function( elem, types, handler, selector, mappedTypes ) {

                                Function augmentWidthOrHeight has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {

                                  Function buildFragment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function buildFragment( elems, context, scripts, selection, ignored ) {

                                    Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    function Tween( elem, options, prop, end, easing ) {

                                      Avoid too many return statements within this function.
                                      Open

                                                              return results;

                                        Avoid too many return statements within this function.
                                        Open

                                                            return results;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language