siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

Consider simplifying this complex logical expression.
Open

        if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
            return;
        }
Severity: Major
Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

    if ( jQuery.expr && jQuery.expr.filters ) {
        jQuery.expr.filters.hidden = function( elem ) {
            var width = elem.offsetWidth,
                height = elem.offsetHeight;
    
    
    Severity: Major
    Found in docs/api/phpdoc/js/jquery-1.7.1.min.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 docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

            $('.visibility button.inherited').click(function(){
                $('.element.inherited,.side-nav li.inherited').toggle($(this).hasClass('active'));
            }).click();
        Severity: Major
        Found in docs/api/phpdoc/js/template.js and 2 other locations - About 55 mins to fix
        docs/api/phpdoc/js/template.js on lines 52..54
        docs/api/phpdoc/js/template.js on lines 55..57

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

        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 3 locations. Consider refactoring.
        Open

            $('.visibility button.protected').click(function(){
                $('.element.protected,.side-nav li.protected').toggle($(this).hasClass('active'));
            }).click();
        Severity: Major
        Found in docs/api/phpdoc/js/template.js and 2 other locations - About 55 mins to fix
        docs/api/phpdoc/js/template.js on lines 55..57
        docs/api/phpdoc/js/template.js on lines 58..60

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

        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 3 locations. Consider refactoring.
        Open

                $("<div>", { 'class': "iviewer_zoom_in 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 2 other locations - About 55 mins to fix
        docs/api/phpdoc/js/jquery.iviewer.js on lines 822..824
        docs/api/phpdoc/js/jquery.iviewer.js on lines 837..839

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

        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 3 locations. Consider refactoring.
        Open

                $("<div>", { 'class': "iviewer_zoom_zero iviewer_common iviewer_button"})
                            .bind('mousedown touchstart',function(){me.set_zoom(100); return false;})
                            .appendTo(this.container);
        Severity: Major
        Found in docs/api/phpdoc/js/jquery.iviewer.js and 2 other locations - About 55 mins to fix
        docs/api/phpdoc/js/jquery.iviewer.js on lines 814..816
        docs/api/phpdoc/js/jquery.iviewer.js on lines 837..839

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

        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 3 locations. Consider refactoring.
        Open

                $("<div>", { 'class': "iviewer_rotate_right 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 2 other locations - About 55 mins to fix
        docs/api/phpdoc/js/jquery.iviewer.js on lines 814..816
        docs/api/phpdoc/js/jquery.iviewer.js on lines 822..824

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

        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 3 locations. Consider refactoring.
        Open

            $('.visibility button.private').click(function(){
                $('.element.private,.side-nav li.private').toggle($(this).hasClass('active'));
            }).click();
        Severity: Major
        Found in docs/api/phpdoc/js/template.js and 2 other locations - About 55 mins to fix
        docs/api/phpdoc/js/template.js on lines 52..54
        docs/api/phpdoc/js/template.js on lines 58..60

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

        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

          function getWidth() {
                var data = this.data('panZoom');
            width = (data.position.x2 - data.position.x1);
            return width;
          }
        Severity: Minor
        Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 55 mins to fix
        docs/api/phpdoc/js/jquery.panzoom.js on lines 416..420

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

        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

          function getHeight() {
                var data = this.data('panZoom');
                height = (data.position.y2 - data.position.y1);
            return height;
          }
        Severity: Minor
        Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 55 mins to fix
        docs/api/phpdoc/js/jquery.panzoom.js on lines 405..409

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

        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

                    splitter._PBA = $.boxModel ? dimSum(splitter, "border" + opts.side1 + "Width", "border" + opts.side2 + "Width") : 0;
        Severity: Minor
        Found in docs/api/phpdoc/js/jquery.splitter.js and 1 other location - About 50 mins to fix
        docs/api/phpdoc/js/jquery.splitter.js on lines 163..163

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

        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

                    splitter._PBF = $.boxModel ? dimSum(splitter, "border" + opts.side3 + "Width", "border" + opts.side4 + "Width") : 0;
        Severity: Minor
        Found in docs/api/phpdoc/js/jquery.splitter.js and 1 other location - About 50 mins to fix
        docs/api/phpdoc/js/jquery.splitter.js on lines 164..164

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

        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

        Avoid deeply nested control flow statements.
        Open

                                            if ( xhrOnUnloadAbort ) {
                                                delete xhrCallbacks[ handle ];
                                            }
        Severity: Major
        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

          Function dirCheck has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
          Severity: Minor
          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            } else if ( copy !== undefined ) {
                                target[ name ] = copy;
                            }
            Severity: Major
            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if ( name.indexOf( "data-" ) === 0 ) {
                                          name = jQuery.camelCase( name.substring(5) );
              
                                          dataAttr( this[0], name, data[ name ] );
                                      }
              Severity: Major
              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if ( special[ type ] ) {
                                            jQuery.event.remove( elem, type );
                
                                        // This is a shortcut to avoid jQuery.event.remove's overhead
                                        } else {
                Severity: Major
                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                          if(cnv.match(/^\s+$/)){
                           /*DBG*/ //if(window.console) console.log(['x2j',nn,'node>c',cnn,'WHITE-SPACE (ignore)']);
                           return;
                          };
                  Severity: Major
                  Found in docs/api/phpdoc/js/jquery.xml2json.js - About 45 mins to fix

                    Function access has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        access: function( elems, key, value, exec, fn, pass ) {
                    Severity: Minor
                    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language