DamageStudios/rims

View on GitHub

Showing 250 of 250 total issues

Avoid deeply nested control flow statements.
Open

          if (element.data('params')) data = data + '&' + element.data('params');

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

    function on( elem, types, selector, data, fn, one ) {

      Avoid deeply nested control flow statements.
      Open

                          if ( nodeType === 9 ) {
                              if ( (elem = context.getElementById( m )) ) {
      
                                  // Support: IE, Opera, Webkit
                                  // TODO: identify versions

        Avoid deeply nested control flow statements.
        Open

                                if ( attrs[ i ] ) {
                                    name = attrs[ i ].name;
                                    if ( name.indexOf( "data-" ) === 0 ) {
                                        name = jQuery.camelCase( name.slice( 5 ) );
                                        dataAttr( elem, name, data[ name ] );

          Avoid deeply nested control flow statements.
          Open

                              if ( copyIsArray ) {
                                  copyIsArray = false;
                                  clone = src && jQuery.isArray( src ) ? src : [];
          
                              } else {

            Avoid deeply nested control flow statements.
            Open

                                if ( !selector ) {
                                    push.apply( results, seed );
                                    return results;
                                }

              Avoid deeply nested control flow statements.
              Open

                                  while ( j-- ) {
                                      if ( jQuery.nodeName( ( tbody = elem.childNodes[ j ] ), "tbody" ) &&
                                          !tbody.childNodes.length ) {
              
                                          elem.removeChild( tbody );

                Avoid deeply nested control flow statements.
                Open

                                    for ( conv2 in converters ) {
                
                                        // If conv2 outputs current
                                        tmp = conv2.split( " " );
                                        if ( tmp[ 1 ] === current ) {

                  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

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

                          init: function( elem, options, prop, end, easing, unit ) {

                        Avoid deeply nested control flow statements.
                        Open

                                            if ( Expr.relative[ tokens[j].type ] ) {
                                                break;
                                            }

                          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

                            Avoid deeply nested control flow statements.
                            Open

                                                            if ( typeof xhr.responseText === "string" ) {
                                                                responses.text = xhr.responseText;
                                                            }

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

                              function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {

                                Avoid deeply nested control flow statements.
                                Open

                                                } else if ( match[2] ) {
                                                    push.apply( results, context.getElementsByTagName( selector ) );
                                                    return results;
                                
                                                // Class selector

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if ( (nid = context.getAttribute( "id" )) ) {
                                                          nid = nid.replace( rescape, "\\$&" );
                                                      } else {
                                                          context.setAttribute( "id", (nid = expando) );
                                                      }

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( rscriptType.test( node.type || "" ) &&
                                                            !jQuery._data( node, "globalEval" ) &&
                                                            jQuery.contains( doc, node ) ) {
                                    
                                                            if ( node.src ) {

                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                      Open

                                          $document.on('ajax:send.rails', rails.formSubmitSelector, function(event) {
                                            if (this === event.target) rails.disableFormElements($(this));
                                          });
                                      public/assets/application-404f4a61b35c93d3441d4475969d79cc4182aff2126750b4beaab13f73340f19.js on lines 11555..11557

                                      Duplicated Code

                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                      Tuning

                                      This issue has a mass of 50.

                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                      Refactorings

                                      Further Reading

                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                      Open

                                          $document.on('ajax:complete.rails', rails.formSubmitSelector, function(event) {
                                            if (this === event.target) rails.enableFormElements($(this));
                                          });
                                      public/assets/application-404f4a61b35c93d3441d4475969d79cc4182aff2126750b4beaab13f73340f19.js on lines 11551..11553

                                      Duplicated Code

                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                      Tuning

                                      This issue has a mass of 50.

                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                      Refactorings

                                      Further Reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language