trotzig/diffux

View on GitHub

Showing 579 of 579 total issues

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

function createButtonPseudo( type ) {
    return function( elem ) {
        var name = elem.nodeName.toLowerCase();
        return (name === "input" || name === "button") && elem.type === type;
    };
Severity: Major
Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
bower_components/jquery/src/sizzle/dist/sizzle.js on lines 413..418

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

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 addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addCombinator( matcher, combinator, base ) {
    var dir = combinator.dir,
        checkNonElements = base && dir === "parentNode",
        doneName = done++;

Severity: Minor
Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

    Function addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function addCombinator( matcher, combinator, base ) {
        var dir = combinator.dir,
            checkNonElements = base && dir === "parentNode",
            doneName = done++;
    
    
    Severity: Minor
    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

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

      function addHandle( attrs, handler ) {
          var arr = attrs.split("|"),
              i = attrs.length;
      
          while ( i-- ) {
      Severity: Major
      Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
      bower_components/jquery/src/sizzle/dist/sizzle.js on lines 360..367

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

      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 addHandle( attrs, handler ) {
          var arr = attrs.split("|"),
              i = attrs.length;
      
          while ( i-- ) {
      Severity: Major
      Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
      bower_components/jquery/dist/jquery.js on lines 913..920

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

      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 each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          each: function( obj, callback, args ) {
              var value,
                  i = 0,
                  length = obj.length,
                  isArray = isArraylike( obj );
      Severity: Minor
      Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

        Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            each: function( obj, callback, args ) {
                var value,
                    i = 0,
                    length = obj.length,
                    isArray = isArraylike( obj );
        Severity: Minor
        Found in bower_components/jquery/src/core.js - About 1 hr to fix

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

          jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
              function( elem, computed ) {
                  if ( computed ) {
                      return jQuery.swap( elem, { "display": "inline-block" },
                          curCSS, [ elem, "marginRight" ] );
          Severity: Major
          Found in bower_components/jquery/src/css.js and 1 other location - About 1 hr to fix
          bower_components/jquery/dist/jquery.js on lines 6075..6082

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

          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

          jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
              function( elem, computed ) {
                  if ( computed ) {
                      return jQuery.swap( elem, { "display": "inline-block" },
                          curCSS, [ elem, "marginRight" ] );
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
          bower_components/jquery/src/css.js on lines 368..375

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

          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 ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function ajaxHandleResponses( s, jqXHR, responses ) {
          
              var ct, type, finalDataType, firstDataType,
                  contents = s.contents,
                  dataTypes = s.dataTypes;
          Severity: Minor
          Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

            Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function ajaxHandleResponses( s, jqXHR, responses ) {
            
                var ct, type, finalDataType, firstDataType,
                    contents = s.contents,
                    dataTypes = s.dataTypes;
            Severity: Minor
            Found in bower_components/jquery/src/ajax.js - About 1 hr to fix

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

              jQuery.easing = {
                  linear: function( p ) {
                      return p;
                  },
                  swing: function( p ) {
              Severity: Major
              Found in bower_components/jquery/src/effects/Tween.js and 1 other location - About 1 hr to fix
              bower_components/jquery/dist/jquery.js on lines 6251..6258

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

              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

              jQuery.easing = {
                  linear: function( p ) {
                      return p;
                  },
                  swing: function( p ) {
              Severity: Major
              Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
              bower_components/jquery/src/effects/Tween.js on lines 100..107

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

              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 when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  when: function( subordinate /* , ..., subordinateN */ ) {
                      var i = 0,
                          resolveValues = slice.call( arguments ),
                          length = resolveValues.length,
              
              
              Severity: Minor
              Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    when: function( subordinate /* , ..., subordinateN */ ) {
                        var i = 0,
                            resolveValues = slice.call( arguments ),
                            length = resolveValues.length,
                
                
                Severity: Minor
                Found in bower_components/jquery/src/deferred.js - About 1 hr to fix

                  Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function showHide( elements, show ) {
                      var display, elem, hidden,
                          values = [],
                          index = 0,
                          length = elements.length;
                  Severity: Minor
                  Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                    Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                        var i = 0,
                            len = elems.length,
                            bulk = key == null;
                    
                    
                    Severity: Minor
                    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                      Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          dispatch: function( event ) {
                      
                              // Make a writable jQuery.Event from the native event object
                              event = jQuery.event.fix( event );
                      
                      
                      Severity: Minor
                      Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                        Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function showHide( elements, show ) {
                            var display, elem, hidden,
                                values = [],
                                index = 0,
                                length = elements.length;
                        Severity: Minor
                        Found in bower_components/jquery/src/css.js - About 1 hr to fix

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

                          function toSelector( tokens ) {
                              var i = 0,
                                  len = tokens.length,
                                  selector = "";
                              for ( ; i < len; i++ ) {
                          Severity: Major
                          Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                          bower_components/jquery/src/sizzle/dist/sizzle.js on lines 1527..1535

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

                          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