pjambet/beech-server

View on GitHub

Showing 166 of 166 total issues

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

function cloneFixAttributes( src, dest ) {
    var nodeName;

    // We do not need to do anything for non-Elements
    if ( dest.nodeType !== 1 ) {
Severity: Minor
Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

    function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
        for ( var i = 0, l = checkSet.length; i < l; i++ ) {
            var elem = checkSet[i];
    
            if ( elem ) {
    Severity: Minor
    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

          clone: function( elem, dataAndEvents, deepDataAndEvents ) {
              var srcElements,
                  destElements,
                  i,
                  // IE<=8 does not properly clone detached, unknown element nodes
      Severity: Minor
      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

        Function style has 29 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 doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

              promise: function( type, object ) {
                  if ( typeof type !== "string" ) {
                      object = type;
                      type = undefined;
                  }
          Severity: Minor
          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                find: function( selector ) {
                    var self = this,
                        i, l;
            
                    if ( typeof selector !== "string" ) {
            Severity: Minor
            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                  show: function( speed, easing, callback ) {
                      var elem, display;
              
                      if ( speed || speed === 0 ) {
                          return this.animate( genFx("show", 3), speed, easing, callback );
              Severity: Minor
              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                    html: function( value ) {
                        return jQuery.access( this, function( value ) {
                            var elem = this[0] || {},
                                i = 0,
                                l = this.length;
                Severity: Minor
                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                  Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          setup: function() {
                  
                              if ( rformElems.test( this.nodeName ) ) {
                                  // IE doesn't fire change on a check/radio until blur; trigger it on click
                                  // after a propertychange. Eat the blur-change in special.change.handle.
                  Severity: Minor
                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                    Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        addClass: function( value ) {
                            var classNames, i, l, elem,
                                setClass, c, cl;
                    
                            if ( jQuery.isFunction( value ) ) {
                    Severity: Minor
                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                              if ( jQuery.isFunction( html ) ) {
                                  return this.each(function(i) {
                                      jQuery(this).wrapInner( html.call(this, i) );
                                  });
                              }
                      Severity: Major
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                      doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 5780..5784

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

                      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

                              submit: function( elem ) {
                                  var name = elem.nodeName.toLowerCase();
                                  return (name === "input" || name === "button") && "submit" === elem.type;
                              },
                      Severity: Major
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                      doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4636..4639

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

                      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 ( jQuery.isFunction( html ) ) {
                                  return this.each(function(i) {
                                      jQuery(this).wrapAll( html.call(this, i) );
                                  });
                              }
                      Severity: Major
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                      doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 5809..5813

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

                      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

                              reset: function( elem ) {
                                  var name = elem.nodeName.toLowerCase();
                                  return (name === "input" || name === "button") && "reset" === elem.type;
                              },
                      Severity: Major
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                      doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4627..4630

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

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

                              fire = function( context, args ) {
                                  args = args || [];
                                  memory = !flags.memory || [ context, args ];
                                  fired = true;
                                  firing = true;
                      Severity: Minor
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                        Function > has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                ">": function( checkSet, part ) {
                                    var elem,
                                        isPartStr = typeof part === "string",
                                        i = 0,
                                        l = checkSet.length;
                        Severity: Minor
                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                          jQuery.buildFragment = function( args, nodes, scripts ) {
                              var fragment, cacheable, cacheresults, doc,
                              first = args[ 0 ];
                          
                              // nodes may contain either an explicit document object,
                          Severity: Minor
                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                            if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
                            
                                                event.data = handleObj.data;
                                                event.handleObj = handleObj;
                            
                            
                            Severity: Major
                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
                                          return;
                                      }
                              Severity: Major
                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                                ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                                !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                                
                                                value = value.replace( rxhtmlTag, "<$1></$2>" );
                                Severity: Major
                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language