siad007/versioncontrol_hg

View on GitHub

Showing 256 of 256 total issues

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

        $('div.namespace-contents').load(
            this.href + ' div.namespace-contents', function(){
                initializeContents();
                $(window).scrollTop($('div.namespace-contents').position().top);
            }
Severity: Major
Found in docs/api/phpdoc/js/template.js and 1 other location - About 1 hr to fix
docs/api/phpdoc/js/template.js on lines 125..130

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

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(x + this.img_object.display_width() < this.options.width){
            x = this.options.width - this.img_object.display_width();
        }
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 468..470

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

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(y + this.img_object.display_height() < this.options.height){
            y = this.options.height - this.img_object.display_height();
        }
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 471..473

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

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

function getWH( elem, name, extra ) {

    // Start with offset property
    var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
        which = name === "width" ? cssWidth : cssHeight,
Severity: Minor
Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

    Function attr has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        attr: function( elem, name, value, pass ) {
            var ret, hooks, notxml,
                nType = elem.nodeType;
    
            // don't get/set attributes on text, comment and attribute nodes
    Severity: Minor
    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 ( match[1] === "nth" ) {
                      if ( !match[2] ) {
                          Sizzle.error( match[0] );
                      }
      
      
      Severity: Critical
      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(window.jQuery) (function($){
         
         // Add function to jQuery namespace
         $.extend({
          
        Severity: Critical
        Found in docs/api/phpdoc/js/jquery.xml2json.js - About 1 hr to fix

          Function closest has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              closest: function( selectors, context ) {
                  var ret = [], i, l, cur = this[0];
                  
                  // Array (deprecated as of jQuery 1.7)
                  if ( jQuery.isArray( selectors ) ) {
          Severity: Minor
          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

            Function each has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                each: function( object, callback, args ) {
                    var name, i = 0,
                        length = object.length,
                        isObj = length === undefined || jQuery.isFunction( object );
            
            
            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

                      if ( jQuery.isFunction( value ) ) {
                          return this.each(function( j ) {
                              jQuery( this ).removeClass( value.call(this, j, this.className) );
                          });
                      }
              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 2199..2203

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

              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( value ) ) {
                          return this.each(function( j ) {
                              jQuery( this ).addClass( value.call(this, j, this.className) );
                          });
                      }
              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 2235..2239

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

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

                      ATTR: function( elem, match ) {
                          var name = match[1],
                              result = Sizzle.attr ?
                                  Sizzle.attr( elem, name ) :
                                  Expr.attrHandle[ name ] ?
              Severity: Minor
              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

                Function setOffset has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    setOffset: function( elem, options, i ) {
                        var position = jQuery.css( elem, "position" );
                
                        // set position first, in-case top/left are set even on static elem
                        if ( position === "static" ) {
                Severity: Minor
                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

                  Function cleanData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      cleanData: function( elems ) {
                          var data, id,
                              cache = jQuery.cache,
                              special = jQuery.event.special,
                              deleteExpando = jQuery.support.deleteExpando;
                  Severity: Minor
                  Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

                    Function slide has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      , slide: function (type, next) {
                          var $active = this.$element.find('.active')
                            , $next = next || $active[type]()
                            , isCycling = this.interval
                            , direction = type == 'next' ? 'left' : 'right'
                    Severity: Minor
                    Found in docs/api/phpdoc/js/bootstrap.js - About 1 hr to fix

                      Function dirCheck has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                          for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                              var elem = checkSet[i];
                      
                              if ( elem ) {
                      Severity: Minor
                      Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

                            style: function( elem, name, value, extra ) {
                                // Don't set styles on text and comment nodes
                                if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                    return;
                                }
                        Severity: Minor
                        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

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

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

                                clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                    var srcElements,
                                        destElements,
                                        i,
                                        // IE<=8 does not properly clone detached, unknown element nodes
                            Severity: Minor
                            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix

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

                                  promise: function( type, object ) {
                                      if ( typeof type !== "string" ) {
                                          object = type;
                                          type = undefined;
                                      }
                              Severity: Minor
                              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language