DamageStudios/rims

View on GitHub

Showing 250 of 250 total issues

Function CHILD has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        "CHILD": function( type, what, argument, first, last ) {
            var simple = type.slice( 0, 3 ) !== "nth",
                forward = type.slice( -4 ) !== "last",
                ofType = what === "of-type";

    Function buildFragment has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function buildFragment( elems, context, scripts, selection, ignored ) {
        var j, elem, contains,
            tmp, tag, tbody, wrap,
            l = elems.length,
    
    

      Function add has 75 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          add: function( elem, types, handler, data, selector ) {
              var tmp, events, t, handleObjIn,
                  special, eventHandle, handleObj,
                  handlers, type, namespaces, origType,
                  elemData = jQuery._data( elem );

        Function matcherFromGroupMatchers has 72 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
            var bySet = setMatchers.length > 0,
                byElement = elementMatchers.length > 0,
                superMatcher = function( seed, context, xml, results, outermost ) {
                    var elem, j, matcher,

          Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function done( status, nativeStatusText, responses, headers ) {
                      var isSuccess, success, error, response, modified,
                          statusText = nativeStatusText;
          
                      // Called once

            Consider simplifying this complex logical expression.
            Open

                                    if ( forward && useCache ) {
            
                                        // Seek `elem` from a previously-cached index
            
                                        // ...in a gzip-friendly way

              Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                  if ( postFilter && !postFilter[ expando ] ) {
                      postFilter = setMatcher( postFilter );
                  }
                  if ( postFinder && !postFinder[ expando ] ) {

                Function send has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                send: function( headers, complete ) {
                                    var i,
                                        xhr = options.xhr(),
                                        id = ++xhrId;
                
                

                  Function superMatcher has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          superMatcher = function( seed, context, xml, results, outermost ) {
                              var elem, j, matcher,
                                  matchedCount = 0,
                                  i = "0",
                                  unmatched = seed && [],

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

                        init = jQuery.fn.init = function( selector, context, root ) {
                            var match, elem;
                    
                            // HANDLE: $(""), $(null), $(undefined), $(false)
                            if ( !selector ) {

                      Function domManip has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function domManip( collection, args, callback, ignored ) {
                      
                          // Flatten any nested arrays
                          args = concat.apply( [], args );
                      
                      

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

                                function removeEvent(element, type, handler) {
                                  if (element.removeEventListener) {
                                    element.removeEventListener(type, handler, false);
                                  } else {
                                    // delete the event handler from the hash table
                        Severity: Major
                        Found in app/assets/javascripts/application.js and 1 other location - About 2 hrs to fix
                        public/assets/application-404f4a61b35c93d3441d4475969d79cc4182aff2126750b4beaab13f73340f19.js on lines 15064..15073

                        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 85.

                        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

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

                                if (!Array.forEach) { // mozilla already supports this
                                  Array.forEach = function(array, block, context) {
                                    for (var i = 0; i < array.length; i++) {
                                      block.call(context, array[i], i, array);
                                    }
                        app/assets/javascripts/application.js on lines 470..476

                        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 85.

                        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

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

                                if (!Array.forEach) { // mozilla already supports this
                                  Array.forEach = function(array, block, context) {
                                    for (var i = 0; i < array.length; i++) {
                                      block.call(context, array[i], i, array);
                                    }
                        Severity: Major
                        Found in app/assets/javascripts/application.js and 1 other location - About 2 hrs to fix
                        public/assets/application-404f4a61b35c93d3441d4475969d79cc4182aff2126750b4beaab13f73340f19.js on lines 15112..15118

                        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 85.

                        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

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

                                function removeEvent(element, type, handler) {
                                  if (element.removeEventListener) {
                                    element.removeEventListener(type, handler, false);
                                  } else {
                                    // delete the event handler from the hash table
                        app/assets/javascripts/application.js on lines 422..431

                        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 85.

                        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

                        Function handleRemote has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            handleRemote: function(element) {
                              var method, url, data, withCredentials, dataType, options;
                        
                              if (rails.fire(element, 'ajax:before')) {
                                withCredentials = element.data('with-credentials') || null;

                          Function Deferred has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Deferred: function( func ) {
                                  var tuples = [
                          
                                          // action, add listener, listener list, final state
                                          [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],

                            Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                var conv2, current, conv, tmp, prev,
                                    converters = {},
                            
                                    // Work with a copy of dataTypes in case we need to modify it for conversion

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

                                      Function.prototype.forEach = function(object, block, context) {
                                        for (var key in object) {
                                          if (typeof this.prototype[key] == "undefined") {
                                            block.call(context, object[key], key, object);
                                          }
                              Severity: Major
                              Found in app/assets/javascripts/application.js and 1 other location - About 2 hrs to fix
                              public/assets/application-404f4a61b35c93d3441d4475969d79cc4182aff2126750b4beaab13f73340f19.js on lines 15121..15127

                              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 79.

                              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

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

                                      Function.prototype.forEach = function(object, block, context) {
                                        for (var key in object) {
                                          if (typeof this.prototype[key] == "undefined") {
                                            block.call(context, object[key], key, object);
                                          }
                              app/assets/javascripts/application.js on lines 479..485

                              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 79.

                              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