siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

Function clean has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    clean: function( elems, context, fragment, scripts ) {
        var checkScriptType;

        context = context || document;

Severity: Major
Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

    Function animate has 83 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        animate: function( prop, speed, easing, callback ) {
            var optall = jQuery.speed( speed, easing, callback );
    
            if ( jQuery.isEmptyObject( prop ) ) {
                return this.each( optall.complete, [ false ] );
    Severity: Major
    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

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

              'panUp': function () {
                  var data = this.data('panZoom');
                  var steps = getStepDimensions.apply(this);
                  data.position.y1 -= steps.pan.y;
                  data.position.y2 -= steps.pan.y;
      Severity: Major
      Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 3 hrs to fix
      docs/api/phpdoc/js/jquery.panzoom.js on lines 153..159

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

      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

              'panLeft': function () {
                  var data = this.data('panZoom');
                  var steps = getStepDimensions.apply(this);
                  data.position.x1 -= steps.pan.x;
                  data.position.x2 -= steps.pan.x;
      Severity: Major
      Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 3 hrs to fix
      docs/api/phpdoc/js/jquery.panzoom.js on lines 137..143

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

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

        xml2json: function(xml, extended) {
         if(!xml) return {}; // quick fail
         
         //### PARSER LIBRARY
         // Core function
      Severity: Major
      Found in docs/api/phpdoc/js/jquery.xml2json.js - About 3 hrs to fix

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

                "~": function( checkSet, part, isXML ) {
                    var nodeCheck,
                        doneName = done++,
                        checkFn = dirCheck;
        
        
        Severity: Major
        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js and 1 other location - About 3 hrs to fix
        docs/api/phpdoc/js/jquery-1.7.1.min.js on lines 4315..4327

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

        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(checkSet, part, isXML){
                    var nodeCheck,
                        doneName = done++,
                        checkFn = dirCheck;
        
        
        Severity: Major
        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js and 1 other location - About 3 hrs to fix
        docs/api/phpdoc/js/jquery-1.7.1.min.js on lines 4329..4341

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

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

            Deferred: function( func ) {
                var doneList = jQuery.Callbacks( "once memory" ),
                    failList = jQuery.Callbacks( "once memory" ),
                    progressList = jQuery.Callbacks( "memory" ),
                    state = "pending",
        Severity: Major
        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

          Consider simplifying this complex logical expression.
          Open

          if ( "getBoundingClientRect" in document.documentElement ) {
              jQuery.fn.offset = function( options ) {
                  var elem = this[0], box;
          
                  if ( options ) {
          Severity: Critical
          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

            Function doAnimation has 73 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function doAnimation() {
                        // XXX 'this' does not always have a nodeName when running the
                        // test suite
            
                        if ( optall.queue === false ) {
            Severity: Major
            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

              Function add has 70 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  add: function( elem, types, handler, data, selector ) {
              
                      var elemData, eventHandle, events,
                          t, tns, type, namespaces, handleObj,
                          handleObjIn, quick, handlers, special;
              Severity: Major
              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _create: function() {
                        var me = this;
                
                        //drag variables
                        this.dx = 0;
                Severity: Major
                Found in docs/api/phpdoc/js/jquery.iviewer.js - About 2 hrs to fix

                  Function filter has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Sizzle.filter = function( expr, set, inplace, not ) {
                      var match, anyFound,
                          type, found, item, filter, left,
                          i, pass,
                          old = expr,
                  Severity: Major
                  Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                    Function done has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function done( status, nativeStatusText, responses, headers ) {
                    
                                // Called once
                                if ( state === 2 ) {
                                    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

                                      v: {               // Vertical splitters:
                                          keyLeft: 39, keyRight: 37, cursor: "e-resize",
                                          splitbarClass: "vsplitbar", outlineClass: "voutline",
                                          type: 'v', eventPos: "pageX", origin: "left",
                                          split: "width",  pxSplit: "offsetWidth",  side1: "Left", side2: "Right",
                      Severity: Major
                      Found in docs/api/phpdoc/js/jquery.splitter.js and 1 other location - About 2 hrs to fix
                      docs/api/phpdoc/js/jquery.splitter.js on lines 114..120

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

                      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

                                      h: {               // Horizontal splitters:
                                          keyTop: 40, keyBottom: 38,  cursor: "n-resize",
                                          splitbarClass: "hsplitbar", outlineClass: "houtline",
                                          type: 'h', eventPos: "pageY", origin: "top",
                                          split: "height", pxSplit: "offsetHeight", side1: "Top",  side2: "Bottom",
                      Severity: Major
                      Found in docs/api/phpdoc/js/jquery.splitter.js and 1 other location - About 2 hrs to fix
                      docs/api/phpdoc/js/jquery.splitter.js on lines 107..113

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

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

                          init: function( selector, context, rootjQuery ) {
                              var match, elem, ret, doc;
                      
                              // Handle $(""), $(null), or $(undefined)
                              if ( !selector ) {
                      Severity: Major
                      Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 hrs to fix

                        Function ellipsisElement has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function ellipsisElement( $e, $d, $i, o, after )
                            {
                                var isTruncated    = false,
                                    e = $e[ 0 ];
                        
                        
                        Severity: Major
                        Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 2 hrs to fix

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

                                          if (data.position.x2 - data.position.x1 < settings.min_width/settings.factor) {
                                              data.position.x2 = data.position.x1*1+settings.min_width/settings.factor;
                                          }
                          Severity: Major
                          Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 2 hrs to fix
                          docs/api/phpdoc/js/jquery.panzoom.js on lines 342..344

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

                          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 (data.position.y2 - data.position.y1 < settings.min_height/settings.factor) {
                                            data.position.y2 = data.position.y1*1+settings.min_height/settings.factor;
                                          }
                          Severity: Major
                          Found in docs/api/phpdoc/js/jquery.panzoom.js and 1 other location - About 2 hrs to fix
                          docs/api/phpdoc/js/jquery.panzoom.js on lines 339..341

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

                          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