trotzig/diffux

View on GitHub

Showing 579 of 579 total issues

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

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

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

            style: function( elem, name, value, extra ) {
        
                // Don't set styles on text and comment nodes
                if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                    return;
        Severity: Minor
        Found in bower_components/jquery/src/css.js - About 1 hr to fix

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

              style: function( elem, name, value, extra ) {
          
                  // Don't set styles on text and comment nodes
                  if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                      return;
          Severity: Minor
          Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

            Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                attr: function( elem, name, value ) {
                    var hooks, ret,
                        nType = elem.nodeType;
            
                    // don't get/set attributes on text, comment and attribute nodes
            Severity: Minor
            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

              Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  attr: function( elem, name, value ) {
                      var hooks, ret,
                          nType = elem.nodeType;
              
                      // don't get/set attributes on text, comment and attribute nodes
              Severity: Minor
              Found in bower_components/jquery/src/attributes/attr.js - About 1 hr to fix

                Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    handlers: function( event, handlers ) {
                        var i, matches, sel, handleObj,
                            handlerQueue = [],
                            delegateCount = handlers.delegateCount,
                            cur = event.target;
                Severity: Minor
                Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

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

                  jQuery._evalUrl = function( url ) {
                      return jQuery.ajax({
                          url: url,
                          type: "GET",
                          dataType: "script",
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                  bower_components/jquery/src/manipulation/_evalUrl.js on lines 5..14

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

                  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._evalUrl = function( url ) {
                      return jQuery.ajax({
                          url: url,
                          type: "GET",
                          dataType: "script",
                  Severity: Major
                  Found in bower_components/jquery/src/manipulation/_evalUrl.js and 1 other location - About 1 hr to fix
                  bower_components/jquery/dist/jquery.js on lines 8322..8331

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

                  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 createInputPseudo( type ) {
                      return function( elem ) {
                          var name = elem.nodeName.toLowerCase();
                          return name === "input" && elem.type === type;
                      };
                  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 955..960

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

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

                      handlers: function( event, handlers ) {
                          var i, matches, sel, handleObj,
                              handlerQueue = [],
                              delegateCount = handlers.delegateCount,
                              cur = event.target;
                  Severity: Minor
                  Found in bower_components/jquery/src/event.js - About 1 hr to fix

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

                    function createInputPseudo( type ) {
                        return function( elem ) {
                            var name = elem.nodeName.toLowerCase();
                            return name === "input" && 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 402..407

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

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

                        toggleClass: function( value, stateVal ) {
                            var type = typeof value;
                    
                            if ( typeof stateVal === "boolean" && type === "string" ) {
                                return stateVal ? this.addClass( value ) : this.removeClass( value );
                    Severity: Minor
                    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                      Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          toggleClass: function( value, stateVal ) {
                              var type = typeof value;
                      
                              if ( typeof stateVal === "boolean" && type === "string" ) {
                                  return stateVal ? this.addClass( value ) : this.removeClass( value );
                      Severity: Minor
                      Found in bower_components/jquery/src/attributes/classes.js - About 1 hr to fix

                        Method perform has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          def perform(snapshot_id)
                            return unless set_snapshot(snapshot_id)
                            return unless @snapshot.compare?
                        
                            url          = @snapshot.url
                        Severity: Minor
                        Found in app/workers/snapshot_comparer_worker.rb - About 1 hr to fix

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

                          function multipleContexts( selector, contexts, results ) {
                              var i = 0,
                                  len = contexts.length;
                              for ( ; i < len; i++ ) {
                                  Sizzle( selector, contexts[i], results );
                          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 1604..1611

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

                          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 multipleContexts( selector, contexts, results ) {
                              var i = 0,
                                  len = contexts.length;
                              for ( ; i < len; i++ ) {
                                  Sizzle( selector, contexts[i], results );
                          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 2157..2164

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

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

                              finish: function( type ) {
                                  if ( type !== false ) {
                                      type = type || "fx";
                                  }
                                  return this.each(function() {
                          Severity: Minor
                          Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                            Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                finish: function( type ) {
                                    if ( type !== false ) {
                                        type = type || "fx";
                                    }
                                    return this.each(function() {
                            Severity: Minor
                            Found in bower_components/jquery/src/effects.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language