pjambet/beech-server

View on GitHub

Showing 166 of 166 total issues

Function stop has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    stop: function( type, clearQueue, gotoEnd ) {
        if ( typeof type !== "string" ) {
            gotoEnd = clearQueue;
            clearQueue = type;
            type = undefined;
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

                    event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
    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 3385..3385

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

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

        load: function( url, params, callback ) {
            if ( typeof url !== "string" && _load ) {
                return _load.apply( this, arguments );
    
            // Don't do a request if no elements are being requested
    Severity: Minor
    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

        , show: function () {
            var $tip
              , inside
              , pos
              , actualWidth
      Severity: Minor
      Found in doc/apidoc/javascripts/bundled/bootstrap.js - About 1 hr to fix

        Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            val: function( value ) {
                var hooks, ret, isFunction,
                    elem = this[0];
        
                if ( !arguments.length ) {
        Severity: Minor
        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

          Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                  var origFn, type;
          
                  // Types can be a map of types/handlers
                  if ( typeof types === "object" ) {
          Severity: Minor
          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

            Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jQuery.extend = jQuery.fn.extend = function() {
                var options, name, src, copy, copyIsArray, clone,
                    target = arguments[0] || {},
                    i = 1,
                    length = arguments.length,
            Severity: Minor
            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                  when: function( firstParam ) {
                      var args = sliceDeferred.call( arguments, 0 ),
                          i = 0,
                          length = args.length,
                          pValues = new Array( length ),
              Severity: Minor
              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                function getWidthOrHeight( elem, name, extra ) {
                
                    // Start with offset property
                    var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                        i = name === "width" ? 1 : 0,
                Severity: Minor
                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

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

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

                        access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                            var exec,
                                bulk = key == null,
                                i = 0,
                                length = elems.length;
                    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 ( match[1] === "nth" ) {
                                      if ( !match[2] ) {
                                          Sizzle.error( match[0] );
                                      }
                      
                      
                      Severity: Critical
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                        Function closest has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            closest: function( selectors, context ) {
                                var ret = [], i, l, cur = this[0];
                        
                                // Array (deprecated as of jQuery 1.7)
                                if ( jQuery.isArray( selectors ) ) {
                        Severity: Minor
                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                              each: function( object, callback, args ) {
                                  var name, i = 0,
                                      length = object.length,
                                      isObj = length === undefined || jQuery.isFunction( object );
                          
                          
                          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( value ) ) {
                                        return this.each(function( j ) {
                                            jQuery( this ).addClass( value.call(this, j, this.className) );
                                        });
                                    }
                            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 2291..2295

                            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

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

                                    if ( jQuery.isFunction( value ) ) {
                                        return this.each(function( j ) {
                                            jQuery( this ).removeClass( value.call(this, j, this.className) );
                                        });
                                    }
                            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 2255..2259

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

                                setOffset: function( elem, options, i ) {
                                    var position = jQuery.css( elem, "position" );
                            
                                    // set position first, in-case top/left are set even on static elem
                                    if ( position === "static" ) {
                            Severity: Minor
                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

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

                                      ATTR: function( elem, match ) {
                                          var name = match[1],
                                              result = Sizzle.attr ?
                                                  Sizzle.attr( elem, name ) :
                                                  Expr.attrHandle[ name ] ?
                              Severity: Minor
                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                Function slide has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  , slide: function (type, next) {
                                      var $active = this.$element.find('.active')
                                        , $next = next || $active[type]()
                                        , isCycling = this.interval
                                        , direction = type == 'next' ? 'left' : 'right'
                                Severity: Minor
                                Found in doc/apidoc/javascripts/bundled/bootstrap.js - About 1 hr to fix

                                  Function cleanData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      cleanData: function( elems ) {
                                          var data, id,
                                              cache = jQuery.cache,
                                              special = jQuery.event.special,
                                              deleteExpando = jQuery.support.deleteExpando;
                                  Severity: Minor
                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language