siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

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

    Avoid deeply nested control flow statements.
    Open

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

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

      function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
              dataType /* internal */, inspected /* internal */ ) {
      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

                                if ( elem.id !== match[2] ) {
                                    return rootjQuery.find( selector );
                                }
        Severity: Major
        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

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

                  CLASS: function( match, curLoop, inplace, result, not, isXML ) {
          Severity: Minor
          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

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

                    ATTR: function( match, curLoop, inplace, result, not, 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

                                      for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                          if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
                                              setClass += classNames[ c ] + " ";
                                          }
                                      }
              Severity: Major
              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 45 mins to fix

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

                         if (settings.out_x1) { settings.out_x1.val(Math.round(data.position.x1 / settings.factor)) }
                Severity: Major
                Found in docs/api/phpdoc/js/jquery.panzoom.js and 3 other locations - About 45 mins to fix
                docs/api/phpdoc/js/jquery.panzoom.js on lines 435..435
                docs/api/phpdoc/js/jquery.panzoom.js on lines 436..436
                docs/api/phpdoc/js/jquery.panzoom.js on lines 437..437

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

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

                  Avoid deeply nested control flow statements.
                  Open

                                          for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                              className = className.replace(" " + classNames[ c ] + " ", " ");
                                          }
                  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 ( !match ) {
                                            anyFound = found = true;
                    
                                        } else if ( match === true ) {
                                            continue;
                    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

                                          for ( i = 0; (item = curLoop[i]) != null; i++ ) {
                                              if ( item ) {
                                                  found = filter( item, match, i, curLoop );
                                                  pass = not ^ found;
                      
                      
                      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 ( !xhrCallbacks ) {
                                                        xhrCallbacks = {};
                                                        jQuery( window ).unload( xhrOnUnloadAbort );
                                                    }
                        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 ( jQuery.isPlainObject( context ) ) {
                                                      selector = [ document.createElement( ret[1] ) ];
                                                      jQuery.fn.attr.call( selector, context, true );
                          
                                                  } 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

                                            } 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 ( !old ) {
                                                          oldContext.removeAttribute( "id" );
                                                      }
                              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

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

                                           if (settings.out_y2) { settings.out_y2.val(Math.round(data.position.y2 / settings.factor)) }
                                  Severity: Major
                                  Found in docs/api/phpdoc/js/jquery.panzoom.js and 3 other locations - About 45 mins to fix
                                  docs/api/phpdoc/js/jquery.panzoom.js on lines 434..434
                                  docs/api/phpdoc/js/jquery.panzoom.js on lines 435..435
                                  docs/api/phpdoc/js/jquery.panzoom.js on lines 436..436

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

                                  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 (  locationPath == thisPath
                                              && (location.hostname == this.hostname || !this.hostname)
                                              && this.hash.replace(/#/,'') ) {
                                              var $target = $(this.hash), target = this.hash;
                                              if (target) {
                                  Severity: Minor
                                  Found in docs/api/phpdoc/js/jquery.smooth-scroll.js and 1 other location - About 40 mins to fix
                                  docs/api/phpdoc/js/template.js on lines 151..171

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

                                  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 (locationPath == thisPath && (location.hostname == this.hostname || !this.hostname) && this.hash.replace(/#/, ''))
                                              {
                                                  var target = decodeURIComponent(this.hash.replace(/#/,''));
                                                  // note: I'm using attribute selector, because id selector can't match elements with '$' 
                                                  var $target = $('[id="'+target+'"]');
                                  Severity: Minor
                                  Found in docs/api/phpdoc/js/template.js and 1 other location - About 40 mins to fix
                                  docs/api/phpdoc/js/jquery.smooth-scroll.js on lines 12..30

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

                                  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