trotzig/diffux

View on GitHub

Showing 579 of 579 total issues

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/src/core/access.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/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
    bower_components/jquery/dist/jquery.js on lines 2080..2088

    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

    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/src/event.js - About 1 hr to fix

      Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          setOffset: function( elem, options, i ) {
              var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                  position = jQuery.css( elem, "position" ),
                  curElem = jQuery( elem ),
                  props = {};
      Severity: Minor
      Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

        Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            setOffset: function( elem, options, i ) {
                var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                    position = jQuery.css( elem, "position" ),
                    curElem = jQuery( elem ),
                    props = {};
        Severity: Minor
        Found in bower_components/jquery/src/offset.js - About 1 hr to fix

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

          jQuery.expr.filters.animated = function( elem ) {
              return jQuery.grep(jQuery.timers, function( fn ) {
                  return elem === fn.elem;
              }).length;
          };
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
          bower_components/jquery/src/effects/animatedSelector.js on lines 7..11

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

          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

          var getStyles = function( elem ) {
                  // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
                  // IE throws on elements created in popups
                  // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
                  if ( elem.ownerDocument.defaultView.opener ) {
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
          bower_components/jquery/src/css/var/getStyles.js on lines 2..11

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

          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

          jQuery.acceptData = function( owner ) {
              // Accepts only:
              //  - Node
              //    - Node.ELEMENT_NODE
              //    - Node.DOCUMENT_NODE
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
          bower_components/jquery/src/data/accepts.js on lines 8..17

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

          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

          jQuery.acceptData = function( owner ) {
              // Accepts only:
              //  - Node
              //    - Node.ELEMENT_NODE
              //    - Node.DOCUMENT_NODE
          Severity: Major
          Found in bower_components/jquery/src/data/accepts.js and 1 other location - About 1 hr to fix
          bower_components/jquery/dist/jquery.js on lines 3523..3532

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

          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

              return function( elem ) {
                  // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
                  // IE throws on elements created in popups
                  // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
                  if ( elem.ownerDocument.defaultView.opener ) {
          Severity: Major
          Found in bower_components/jquery/src/css/var/getStyles.js and 1 other location - About 1 hr to fix
          bower_components/jquery/dist/jquery.js on lines 5540..5549

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

          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.expr.filters.animated = function( elem ) {
              return jQuery.grep(jQuery.timers, function( fn ) {
                  return elem === fn.elem;
              }).length;
          };
          Severity: Major
          Found in bower_components/jquery/src/effects/animatedSelector.js and 1 other location - About 1 hr to fix
          bower_components/jquery/dist/jquery.js on lines 8903..8907

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

          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

          Consider simplifying this complex logical expression.
          Open

                                  } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                      diff = cache[1];
          
                                  // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                  } else {
          Severity: Critical
          Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                                    } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                        diff = cache[1];
            
                                    // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                    } else {
            Severity: Critical
            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if ( start && start[ 3 ] !== unit ) {
                              // Trust units reported by jQuery.css
                              unit = unit || start[ 3 ];
              
                              // Make sure we update the tween properties later on
              Severity: Critical
              Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( start && start[ 3 ] !== unit ) {
                                // Trust units reported by jQuery.css
                                unit = unit || start[ 3 ];
                
                                // Make sure we update the tween properties later on
                Severity: Critical
                Found in bower_components/jquery/src/effects.js - About 1 hr to fix

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

                  jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
                      jQuery.fn[ type ] = function( fn ) {
                          return this.on( type, fn );
                      };
                  });
                  Severity: Major
                  Found in bower_components/jquery/src/event/ajax.js and 1 other location - About 1 hr to fix
                  bower_components/jquery/dist/jquery.js on lines 8894..8898

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

                  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.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
                      jQuery.fn[ type ] = function( fn ) {
                          return this.on( type, fn );
                      };
                  });
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                  bower_components/jquery/src/event/ajax.js on lines 7..11

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

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

                      addClass: function( value ) {
                          var classes, elem, cur, clazz, j, finalValue,
                              proceed = typeof value === "string" && value,
                              i = 0,
                              len = this.length;
                  Severity: Minor
                  Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                    Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.fn.load = function( url, params, callback ) {
                        if ( typeof url !== "string" && _load ) {
                            return _load.apply( this, arguments );
                        }
                    
                    
                    Severity: Minor
                    Found in bower_components/jquery/src/ajax/load.js - About 1 hr to fix

                      Function removeClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          removeClass: function( value ) {
                              var classes, elem, cur, clazz, j, finalValue,
                                  proceed = arguments.length === 0 || typeof value === "string" && value,
                                  i = 0,
                                  len = this.length;
                      Severity: Minor
                      Found in bower_components/jquery/src/attributes/classes.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language