siad007/versioncontrol_hg

View on GitHub

Showing 170 of 256 total issues

Avoid deeply nested control flow statements.
Open

                    if ( !isXML ) {
                        elem[ expando ] = doneName;
                        elem.sizset = i;
                    }
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

      Avoid deeply nested control flow statements.
      Open

                                      if ( firing ) {
                                          if ( i <= firingLength ) {
                                              firingLength--;
                                              if ( i <= firingIndex ) {
                                                  firingIndex--;
      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 ( !old ) {
                                      oldContext.removeAttribute( "id" );
                                  }
          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 ( typeof cur !== "string" ) {
                                    if ( elem === cur ) {
                                        match = true;
                                        break;
                                    }
            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 ( !inplace ) {
                                      curLoop = result;
                                  }
              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

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

                      this.setImageProps = function(disp_w, disp_h, x, y, skip_animation, complete) {
                  Severity: Minor
                  Found in docs/api/phpdoc/js/jquery.iviewer.js - About 45 mins to fix

                    Function onload has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    window.onload = function() {
                        function addIcon(el, entity) {
                            var html = el.innerHTML;
                            el.innerHTML = '<span style="font-family: \'phpdocumentor-clean-icons\'">' + entity + '</span>' + html;
                        }
                    Severity: Minor
                    Found in docs/api/phpdoc/css/phpdocumentor-clean-icons/lte-ie7.js - About 45 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Consider simplifying this complex logical expression.
                    Open

                            if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
                    
                                // Pregenerate a single jQuery object for reuse with .is()
                                jqcur = jQuery(this);
                                jqcur.context = this.ownerDocument || this;
                    Severity: Major
                    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                  (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                                  !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
                      
                                  value = value.replace(rxhtmlTag, "<$1></$2>");
                      Severity: Major
                      Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                        if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
                        
                                            // Don't re-trigger an onFOO event when we call its FOO() method
                                            old = elem[ ontype ];
                        
                        
                        Severity: Major
                        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                          if ( !jQuery.support.opacity ) {
                              jQuery.cssHooks.opacity = {
                                  get: function( elem, computed ) {
                                      // IE uses filters for opacity
                                      return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
                          Severity: Major
                          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                                            Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
                            
                                        ret = Sizzle.find( parts.shift(), context, contextXML );
                                        context = ret.expr ?
                            Severity: Major
                            Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ( s.crossDomain == null ) {
                                          parts = rurl.exec( s.url.toLowerCase() );
                                          s.crossDomain = !!( parts &&
                                              ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                                                  ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
                              Severity: Major
                              Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 40 mins to fix

                                Function ellipsis has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    function ellipsis( $elem, $d, $i, o, after )
                                Severity: Minor
                                Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 35 mins to fix

                                  Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      add: function( elem, types, handler, data, selector ) {
                                  Severity: Minor
                                  Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 35 mins to fix

                                    Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        remove: function( elem, types, handler, selector, mappedTypes ) {
                                    Severity: Minor
                                    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 35 mins to fix

                                      Function ellipsisElement has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          function ellipsisElement( $e, $d, $i, o, after )
                                      Severity: Minor
                                      Found in docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 35 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language