siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

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

    function validatePosition() {
        var data = this.data('panZoom');
        // if dimensions are too small...
        if ( data.position.x2 - data.position.x1 < settings.min_width/settings.factor || data.position.y2 - data.position.y1 < settings.min_height/settings.factor ) {
            // and second co-ords are zero (IE: no dims set), fit image
Severity: Minor
Found in docs/api/phpdoc/js/jquery.panzoom.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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

          jQuery.fn[ type ] = function( size ) {
              // Get window width or height
              var elem = this[0];
              if ( !elem ) {
                  return size == null ? null : this;
      Severity: Minor
      Found in docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

                html: function( value ) {
                    if ( value === undefined ) {
                        return this[0] && this[0].nodeType === 1 ?
                            this[0].innerHTML.replace(rinlinejQuery, "") :
                            null;
            Severity: Minor
            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

              Function show has 27 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 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

                        $("<div>", { 'class': "iviewer_zoom_out iviewer_common iviewer_button"})
                                    .bind('mousedown touchstart',function(){me.zoom_by(- 1); return false;})
                                    .appendTo(this.container);
                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 833..835

                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 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 4543..4546

                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

                            zoom: {
                                x: (settings.zoom_step/100 * data.viewport_dimensions.x),
                                y: (settings.zoom_step/100 * data.viewport_dimensions.y)
                            },
                Severity: Major
                Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 1 hr to fix
                docs/api/phpdoc/js/jquery.panzoom.js on lines 447..450

                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).wrapInner( html.call(this, i) );
                            });
                        }
                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 5700..5704

                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 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 5729..5733

                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

                        $("<div>", { 'class': "iviewer_rotate_left iviewer_common iviewer_button"})
                                    .bind('mousedown touchstart',function(){me.angle(-90); return false;})
                                    .appendTo(this.container);
                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 818..820

                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

                            pan: {
                                x: (settings.pan_step/100 * data.viewport_dimensions.x),
                                y: (settings.pan_step/100 * data.viewport_dimensions.y)
                            }
                Severity: Major
                Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 1 hr to fix
                docs/api/phpdoc/js/jquery.panzoom.js on lines 443..446

                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 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 4552..4555

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

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

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

                          function children( $elem, o, after )
                          {
                              var $elements     = $elem.children(),
                                  isTruncated    = false;
                      
                      
                      Severity: Minor
                      Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 1 hr to fix

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

                        window.onload = function() {
                            function addIcon(el, entity) {
                                var html = el.innerHTML;
                                el.innerHTML = '<span style="font-family: \'phpdocumentor-clean-icons\'">' + entity + '</span>' + html;
                            }
                        Severity: Minor
                        Found in docs/api/phpdoc/css/phpdocumentor-clean-icons/lte-ie7.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language