siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

Function domManip has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    domManip: function( args, table, callback ) {
        var results, first, fragment, parent,
            value = args[0],
            scripts = [];

Severity: Minor
Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

    Function cookie has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jQuery.cookie = function(name, value, options)
    {
      if (typeof value != 'undefined')
      { // name and value given, set cookie
        options = options || {};
    Severity: Minor
    Found in docs/api/phpdoc/js/jquery.cookie.js - About 1 hr to fix

      Function set_zoom has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          set_zoom: function(new_zoom, skip_animation, zoom_center)
          {
              if (this._trigger('onZoom', 0, new_zoom) == false) {
                  return;
              }
      Severity: Minor
      Found in docs/api/phpdoc/js/jquery.iviewer.js - About 1 hr to fix

        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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

                  $dot.watch = function()
                  {
                      $dot.unwatch();
                      if ( opts.watch == 'window' )
                      {
          Severity: Minor
          Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 1 hr to fix

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

                            event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
            Severity: Major
            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js and 1 other location - About 1 hr to fix
            docs/api/phpdoc/js/jquery-1.7.1.min.js on lines 3309..3309

            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

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

                    if ( jQuery.isFunction(text) ) {
                        return this.each(function(i) {
                            var self = jQuery( this );
            
                            self.text( text.call(this, i, self.text()) );
            Severity: Major
            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js and 1 other location - About 1 hr to fix
            docs/api/phpdoc/js/jquery-1.7.1.min.js on lines 9207..9212

            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

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

                    if ( jQuery.isFunction( size ) ) {
                        return this.each(function( i ) {
                            var self = jQuery( this );
                            self[ type ]( size.call( this, i, self[ type ]() ) );
                        });
            Severity: Major
            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js and 1 other location - About 1 hr to fix
            docs/api/phpdoc/js/jquery-1.7.1.min.js on lines 5684..5690

            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

            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 docs/api/phpdoc/js/jquery-1.7.1.min.js and 1 other location - About 1 hr to fix
            docs/api/phpdoc/js/jquery-1.7.1.min.js on lines 3308..3308

            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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

                  data: function( key, value ) {
                      var parts, attr, name,
                          data = null;
              
                      if ( typeof key === "undefined" ) {
              Severity: Minor
              Found in docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/bootstrap.js - About 1 hr to fix

                  Function ellipsis has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function ellipsis( $elem, $d, $i, o, after )
                      {
                          var $elements     = $elem.contents(),
                              isTruncated    = false;
                  
                  
                  Severity: Minor
                  Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.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 docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

                                    if(this.img_object.display_height() <= this.options.height){
                                        y = -(this.img_object.display_height() - this.options.height)/2;
                                    }
                            Severity: Major
                            Found in docs/api/phpdoc/js/jquery.iviewer.js and 1 other location - About 1 hr to fix
                            docs/api/phpdoc/js/jquery.iviewer.js on lines 474..476

                            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

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

                                    if(this.img_object.display_width() <= this.options.width){
                                        x = -(this.img_object.display_width() - this.options.width)/2;
                                    }
                            Severity: Major
                            Found in docs/api/phpdoc/js/jquery.iviewer.js and 1 other location - About 1 hr to fix
                            docs/api/phpdoc/js/jquery.iviewer.js on lines 477..479

                            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

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

                                    $('div.package-contents').load(
                                        this.href + ' div.package-contents', function(){
                                            initializeContents();
                                            $(window).scrollTop($('div.package-contents').position().top);
                                        }
                            Severity: Major
                            Found in docs/api/phpdoc/js/template.js and 1 other location - About 1 hr to fix
                            docs/api/phpdoc/js/template.js on lines 119..124

                            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

                            Severity
                            Category
                            Status
                            Source
                            Language