trotzig/diffux

View on GitHub

Showing 579 of 579 total issues

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

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

        var handleObjIn, eventHandle, tmp,
            events, t, handleObj,
            special, handlers, type, namespaces, origType,
Severity: Major
Found in bower_components/jquery/src/event.js - About 2 hrs to fix

    Function matcherFromGroupMatchers has 68 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,
    Severity: Major
    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

      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
      Severity: Major
      Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

        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
        Severity: Major
        Found in bower_components/jquery/src/ajax.js - About 2 hrs to fix

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

          if ( !assert(function( div ) {
              return div.getAttribute("disabled") == null;
          }) ) {
              addHandle( booleans, function( elem, name, isXML ) {
                  var val;
          Severity: Major
          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 hrs to fix
          bower_components/jquery/dist/jquery.js on lines 2595..2607

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

          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

          if ( !assert(function( div ) {
              return div.getAttribute("disabled") == null;
          }) ) {
              addHandle( booleans, function( elem, name, isXML ) {
                  var val;
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
          bower_components/jquery/src/sizzle/dist/sizzle.js on lines 2042..2054

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

          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 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 ] ) {
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

            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 ] ) {
            Severity: Major
            Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

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

                  handleRemote: function(element) {
                    var method, url, data, elCrossDomain, crossDomain, withCredentials, dataType, options;
              
                    if (rails.fire(element, 'ajax:before')) {
                      elCrossDomain = element.data('cross-domain');
              Severity: Major
              Found in bower_components/jquery-ujs/src/rails.js - About 2 hrs to fix

                Function superMatcher has 61 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 && [],
                Severity: Major
                Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                  Function superMatcher has 61 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 && [],
                  Severity: Major
                  Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

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

                    function elementMatcher( matchers ) {
                        return matchers.length > 1 ?
                            function( elem, context, xml ) {
                                var i = matchers.length;
                                while ( i-- ) {
                    Severity: Major
                    Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                    bower_components/jquery/src/sizzle/dist/sizzle.js on lines 1590..1602

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

                    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 elementMatcher( matchers ) {
                        return matchers.length > 1 ?
                            function( elem, context, xml ) {
                                var i = matchers.length;
                                while ( i-- ) {
                    Severity: Major
                    Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 hrs to fix
                    bower_components/jquery/dist/jquery.js on lines 2143..2155

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

                    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 CHILD has 59 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";
                    
                    
                    Severity: Major
                    Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                      Function Deferred has 59 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" ],
                                      [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                      Severity: Major
                      Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                        Function CHILD has 59 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";
                        
                        
                        Severity: Major
                        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

                          Function Deferred has 59 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" ],
                                          [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                          Severity: Major
                          Found in bower_components/jquery/src/deferred.js - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                    if ( forward && useCache ) {
                                                        // Seek `elem` from a previously-cached index
                                                        outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                        cache = outerCache[ type ] || [];
                                                        nodeIndex = cache[0] === dirruns && cache[1];
                            Severity: Critical
                            Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                                      if ( forward && useCache ) {
                                                          // Seek `elem` from a previously-cached index
                                                          outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                          cache = outerCache[ type ] || [];
                                                          nodeIndex = cache[0] === dirruns && cache[1];
                              Severity: Critical
                              Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

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

                                    domManip: function( args, callback ) {
                                
                                        // Flatten any nested arrays
                                        args = concat.apply( [], args );
                                
                                
                                Severity: Major
                                Found in bower_components/jquery/src/manipulation.js - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language