XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Avoid deeply nested control flow statements.
Open

                        while ( j-- ) {
                            if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
                                elem.removeChild( tbody );
                            }
                        }
Severity: Major
Found in assets/js/jquery.min.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            for ( type in data.events ) {
                                if ( special[ type ] ) {
                                    jQuery.event.remove( elem, type );
    
                                // This is a shortcut to avoid jQuery.event.remove's overhead
    Severity: Major
    Found in assets/js/jquery.min.js - About 45 mins to fix

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

          var c = function (c, d, e, f, g, h) {
      Severity: Minor
      Found in assets/js/jquery.oembed.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (property !== null && extraSettings[property] !== null) {
                                    xoops_smallworld.fn.oembed.providers[i][property] = extraSettings[property];
                                }
        Severity: Major
        Found in assets/js/jquery.oembed.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                          } else if ( copy !== undefined ) {
                              target[ name ] = copy;
                          }
          Severity: Major
          Found in assets/js/jquery.min.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if ( matches[ sel ] === undefined ) {
                                        matches[ sel ] = handleObj.needsContext ?
                                            jQuery( sel, this ).index( cur ) >= 0 :
                                            jQuery.find( sel, this, null, [ cur ] ).length;
                                    }
            Severity: Major
            Found in assets/js/jquery.min.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                          cur = cur.replace( " " + clazz + " ", " " );
                                      }
              Severity: Major
              Found in assets/js/jquery.min.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                if ( typeof xhr.responseText === "string" ) {
                                                    responses.text = xhr.responseText;
                                                }
                Severity: Major
                Found in assets/js/jquery.min.js - About 45 mins to fix

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

                          _buildLayout: function (inst, show, layout, compact, significant, showSignificant) {
                  Severity: Minor
                  Found in assets/js/jquery.countdown.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if ( Expr.relative[ tokens[j].type ] ) {
                                            break;
                                        }
                    Severity: Major
                    Found in assets/js/jquery.min.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if ( !selector ) {
                                              push.apply( results, seed );
                                              return results;
                                          }
                      Severity: Major
                      Found in assets/js/jquery.min.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if (historyDelta < 0) { // back button has been pushed
                                                // move items to forward stack
                                                for (var i = 0; i < Math.abs(historyDelta); i++) xoops_smallworld.historyForwardStack.unshift(xoops_smallworld.historyBackStack.pop());
                                            } else { // forward button has been pushed
                                                // move items to back stack
                        Severity: Major
                        Found in assets/js/jquery.history.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                                  contains( context, elem ) && elem.id === m ) {
                                                  results.push( elem );
                                                  return results;
                                              }
                          Severity: Major
                          Found in assets/js/jquery.min.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( (elem = matcherOut[i]) ) {
                                                        // Restore matcherIn since elem is not yet a final match
                                                        temp.push( (matcherIn[i] = elem) );
                                                    }
                            Severity: Major
                            Found in assets/js/jquery.min.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( matches[ sel ] ) {
                                                          matches.push( handleObj );
                                                      }
                              Severity: Major
                              Found in assets/js/jquery.min.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( deleteExpando ) {
                                                            delete elem[ internalKey ];
                                
                                                        } else if ( typeof elem.removeAttribute !== strundefined ) {
                                                            elem.removeAttribute( internalKey );
                                Severity: Major
                                Found in assets/js/jquery.min.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          for ( match in context ) {
                                                              // Properties of context are called as methods if possible
                                                              if ( jQuery.isFunction( this[ match ] ) ) {
                                                                  this[ match ]( context[ match ] );
                                  
                                  
                                  Severity: Major
                                  Found in assets/js/jquery.min.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    if ( xhr.readyState !== 4 ) {
                                                                        xhr.abort();
                                                                    }
                                    Severity: Major
                                    Found in assets/js/jquery.min.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if (cachedHash != undefined) {
                                                              xoops_smallworld.historyCurrentHash = location.hash.replace(/\?.*$/, '');
                                                              xoops_smallworld.historyCallback(cachedHash);
                                                          }
                                      Severity: Major
                                      Found in assets/js/jquery.history.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                                                                            // Cache the index of each encountered element
                                                                            if ( useCache ) {
                                                                                (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                                                                            }
                                        Severity: Major
                                        Found in assets/js/jquery.min.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language