XoopsModules25x/xoopsinfo

View on GitHub

Showing 1,065 of 16,781 total issues

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 phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( conv && s[ "throws" ] ) { // jscs:ignore requireDotNotation
                            response = conv( response );
                        } else {
                            try {
                                response = conv( response );
    Severity: Major
    Found in phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if ( !status && options.isLocal && !options.crossDomain ) {
                                          status = responses.text ? 200 : 404;
      
                                      // IE - #1450: sometimes returns 1223 when it should be 204
                                      } else if ( status === 1223 ) {
      Severity: Major
      Found in phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if ( oSettings.aoColumns[i].sWidthOrig === null )
                                    {
                                        iTotal += $(oNodes[iCorrector]).outerWidth();
                                    }
                                    else
        Severity: Major
        Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (!modal.resizing) {
                                      settings.setWidth = settings.width;
                                      shouldResize = true;
                                  }
          Severity: Major
          Found in phpsysinfo/js/jQuery/jquery.nyroModal.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 phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if ( oSettings.aoColumns[i].sContentPadding !== "" )
                                          {
                                              nTd.innerHTML += oSettings.aoColumns[i].sContentPadding;
                                          }
              Severity: Major
              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if (!isNaN(parseInt(raiditems[i]["@attributes"].Subsets))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(8, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Subsets) + "</td></tr>"; // Subsets
                Severity: Major
                Found in phpsysinfo/plugins/raid/js/raid_bootstrap.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                              if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                                  return true;
                                              }
                  Severity: Major
                  Found in phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

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

                      Avoid deeply nested control flow statements.
                      Open

                                              if (modal.loadingShown || modal.transition)
                                                  showContentOrLoading();
                      Severity: Major
                      Found in phpsysinfo/js/jQuery/jquery.nyroModal.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                           if (bats[i]["@attributes"].DesignCapacity !== undefined) {
                                               delete bats[i]["@attributes"].DesignCapacity;
                                           }
                        Severity: Major
                        Found in phpsysinfo/plugins/bat/js/bat_bootstrap.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if (bats[i]["@attributes"][proc_param] !== undefined) {
                                                      $('#bat-'+ i+ "-" + proc_param).render(bats[i]["@attributes"], directives);
                                                  }
                          Severity: Major
                          Found in phpsysinfo/plugins/bat/js/bat_bootstrap.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                        for ( k=0 ; k<iRowspan ; k++ )
                                                        {
                                                            aApplied[i+k][j+iColspan] = 1;
                                                        }
                            Severity: Major
                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      else if ( typeof aTargets[j] == 'number' && aTargets[j] < 0 )
                                                      {
                                                          /* Negative integer, right to left column counting */
                                                          _fnColumnOptions( oSettings, oSettings.aoColumns.length+aTargets[j], 
                                                              oInit.aoColumnDefs[i] );
                              Severity: Major
                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                              for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                                                element = _ref[_i];
                                                _results1.push(element.render(value));
                                              }
                                Severity: Major
                                Found in phpsysinfo/js/vendor/transparency.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if (raiditems[i].Action !== undefined) {
                                                          var buildedaction = raid_buildaction(raiditems[i].Action['@attributes']);
                                                          if (buildedaction) {
                                                              html += "<tr><td>" + buildedaction + "</td></tr>";
                                                          }
                                  Severity: Major
                                  Found in phpsysinfo/plugins/raid/js/raid_bootstrap.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if (raiditems[i]["@attributes"].Name !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(3, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Name + "</td></tr>"; // Name
                                    Severity: Major
                                    Found in phpsysinfo/plugins/raid/js/raid_bootstrap.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                      } else if ( match[2] ) {
                                                          push.apply( results, context.getElementsByTagName( selector ) );
                                                          return results;
                                      
                                                      // Class selector
                                      Severity: Major
                                      Found in phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( (nid = context.getAttribute( "id" )) ) {
                                                                nid = nid.replace( rescape, "\\$&" );
                                                            } else {
                                                                context.setAttribute( "id", (nid = expando) );
                                                            }
                                        Severity: Major
                                        Found in phpsysinfo/js/jQuery/jquery.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language