siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

Function setupBindings has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function setupBindings() {

        eventData = { target: this }

        // bind up controls
Severity: Major
Found in docs/api/phpdoc/js/jquery.panzoom.js - About 2 hrs to fix

    Function parseXML has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

       function parseXML(node, simple){
        if(!node) return null;
        var txt = '', obj = null, att = null;
        var nt = node.nodeType, nn = jsVar(node.localName || node.nodeName);
        var nv = node.text || node.nodeValue || '';
    Severity: Major
    Found in docs/api/phpdoc/js/jquery.xml2json.js - About 2 hrs to fix

      Function handler has 60 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function handler(event) {
              var orgEvent   = event || window.event,
                  args       = slice.call(arguments, 1),
                  delta      = 0,
                  deltaX     = 0,
      Severity: Major
      Found in docs/api/phpdoc/js/jquery.mousewheel.js - About 2 hrs to fix

        Function ajaxConvert has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function ajaxConvert( s, response ) {
        
            // Apply the dataFilter if provided
            if ( s.dataFilter ) {
                response = s.dataFilter( response, s.dataType );
        Severity: Major
        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

          Function dispatch has 57 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              dispatch: function( event ) {
          
                  // Make a writable jQuery.Event from the native event object
                  event = jQuery.event.fix( event || window.event );
          
          
          Severity: Major
          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

            Function initializeContents has 56 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function initializeContents()
            {
                // hide all more buttons because they are not needed with JS
                $(".element a.more").hide();
            
            
            Severity: Major
            Found in docs/api/phpdoc/js/template.js - About 2 hrs to fix

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

                  data: function( elem, name, data, pvt /* Internal Use Only */ ) {
                      if ( !jQuery.acceptData( elem ) ) {
                          return;
                      }
              
              
              Severity: Major
              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

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

                    var s = "[ " + matrix.a + ", " + matrix.c + ", " + matrix.e + "\n  " + matrix.b + ", " + matrix.d + ", " + matrix.f + "\n  0, 0, 1 ]";
                Severity: Major
                Found in docs/api/phpdoc/js/SVGPan.js and 1 other location - About 2 hrs to fix
                docs/api/phpdoc/js/SVGPan.js on lines 100..100

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

                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

                    var s = "matrix(" + matrix.a + "," + matrix.b + "," + matrix.c + "," + matrix.d + "," + matrix.e + "," + matrix.f + ")";
                Severity: Major
                Found in docs/api/phpdoc/js/SVGPan.js and 1 other location - About 2 hrs to fix
                docs/api/phpdoc/js/SVGPan.js on lines 109..109

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

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

                    removeData: function( elem, name, pvt /* Internal Use Only */ ) {
                        if ( !jQuery.acceptData( elem ) ) {
                            return;
                        }
                
                
                Severity: Major
                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                  Function offset has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      jQuery.fn.offset = function( options ) {
                          var elem = this[0];
                  
                          if ( options ) {
                              return this.each(function( i ) {
                  Severity: Major
                  Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

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

                    d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
                    Severity: Major
                    Found in docs/api/phpdoc/js/jquery.mousewheel.min.js and 1 other location - About 2 hrs to fix
                    docs/api/phpdoc/js/jquery.mousewheel.js on lines 73..81

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

                    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

                        $.fn.extend({
                            mousewheel: function(fn) {
                                return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
                            },
                    
                    
                    Severity: Major
                    Found in docs/api/phpdoc/js/jquery.mousewheel.js and 1 other location - About 2 hrs to fix
                    docs/api/phpdoc/js/jquery.mousewheel.min.js on lines 13..13

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

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

                        remove: function( elem, types, handler, selector, mappedTypes ) {
                    
                            var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
                                t, tns, type, origType, namespaces, origCount,
                                j, events, special, handle, eventType, handleObj;
                    Severity: Major
                    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                      Function step has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          step: function( gotoEnd ) {
                              var p, n, complete,
                                  t = fxNow || createFxNow(),
                                  done = true,
                                  elem = this.elem,
                      Severity: Minor
                      Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                        if ( ( mappedTypes || origType === handleObj.origType ) &&
                                             ( !handler || handler.guid === handleObj.guid ) &&
                                             ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
                                             ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                            eventType.splice( j--, 1 );
                        Severity: Critical
                        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
                                  first.charAt(0) === "<" && !rnocache.test( first ) &&
                                  (jQuery.support.checkClone || !rchecked.test( first )) &&
                                  (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
                          
                          
                          Severity: Critical
                          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                            Function CHILD has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    CHILD: function( elem, match ) {
                                        var first, last,
                                            doneName, parent, cache,
                                            count, diff,
                                            type = match[1],
                            Severity: Minor
                            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

                              Function setImageProps has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  this.setImageProps = function(disp_w, disp_h, x, y, skip_animation, complete) {
                                      complete = complete || jQuery.noop;
                              
                                      this.display_width(disp_w);
                                      this.display_height(disp_h);
                              Severity: Minor
                              Found in docs/api/phpdoc/js/jquery.iviewer.js - About 1 hr to fix

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

                                function ajaxHandleResponses( s, jqXHR, responses ) {
                                
                                    var contents = s.contents,
                                        dataTypes = s.dataTypes,
                                        responseFields = s.responseFields,
                                Severity: Minor
                                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language