suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

Avoid deeply nested control flow statements.
Open

                                    if (-1 !== s && (s - t) < 15) {
                                        y = z.substring(t, s);
                                        if (x.test(y)) {
                                            return y
                                        }
Severity: Major
Found in performance/yslow.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        if (A === "hackFilter") {
                                            z += D[A];
                                            x += D[A]
                                        } else {
                                            q += D[A];
    Severity: Major
    Found in performance/yslow.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          if (C[F].id === "rulesetEditRulesetName") {
                                              w = C[F]
                                          }
      Severity: Major
      Found in performance/yslow.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                            for (F = 0; F < x.components.length; F += 1) {
                                                J = x.components[F];
                                                if (typeof J === "string") {
                                                    C += "<li>" + J + "</li>"
                                                } else {
        Severity: Major
        Found in performance/yslow.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if (u.url !== undefined) {
                                                  C += '<p class="more-info"><a href="javascript:document.ysview.openLink(\'' + u.url + "')\"><b>&#187;</b>Read More</a></p>"
                                              }
          Severity: Major
          Found in performance/yslow.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                                if (u !== -1) {
                                                    z = F.className.substring(u + 8);
                                                    u = z.indexOf(" ");
                                                    if (u !== -1) {
                                                        z = z.substring(0, u)
            Severity: Major
            Found in performance/yslow.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                                  if (E.id && E.id === "custom-set-title") {
                                                      x = E;
                                                      break
                                                  }
              Severity: Major
              Found in performance/yslow.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                        for (y = 0, x = B.length; y < x; y += 1) {
                                                            C = B[y];
                                                            z = typeof C;
                                                            if (z === "string" || z === "number") {
                                                                v += q(E + 1) + r.decodeURIComponent(C) + "\n"
                Severity: Major
                Found in performance/yslow.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if (typeof E === "undefined") {
                                                          E = -1
                                                      }
                  Severity: Major
                  Found in performance/yslow.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                        for (E = 0; E < x.category.length; E += 1) {
                                                            if (L.length > 0) {
                                                                L += " "
                                                            }
                                                            L += x.category[E];
                    Severity: Major
                    Found in performance/yslow.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                          for (t = 0; t < r; t += 1) {
                                                              E.push("        " + D(C(x[t])))
                                                          }
                      Severity: Major
                      Found in performance/yslow.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                            if (!w) {
                                                                r.push(O)
                                                            }
                        Severity: Major
                        Found in performance/yslow.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if (s.className.indexOf("yui-hidden") === -1) {
                                                                  s.className += " yui-hidden"
                                                              }
                          Severity: Major
                          Found in performance/yslow.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                                if (v.after_onload) {
                                                                    z += " *"
                                                                }
                            Severity: Major
                            Found in performance/yslow.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                                  if (A) {
                                                                      A.checked = true
                                                                  }
                              Severity: Major
                              Found in performance/yslow.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if (B !== z.type) {
                                                                        t += '<tr class="type-summary ' + (x ? "expand" : "collapse") + '"><td><a href="javascript:document.ysview.expandCollapseComponentType(document, \'' + B + '\')"><b class="expcol"><b class="exp exph"></b><b class="exp expv"></b><b class="col"></b></b><span class="rowTitle type-' + B + '">' + B + "&nbsp;(" + q + ')</span></a></td><td class="size">' + YSLOW.util.kbSize(s) + "</td><td><!-- GZIP --></td><td></td><td></td><td><!-- HEADERS --></td><td><!-- URL --></td><td><!-- EXPIRES --></td><td><!-- RESPTIME --></td><td><!-- ETAG --></td><td><!-- ACTION--></td></tr>";
                                                                        t += w;
                                                                        w = "";
                                                                        q = 0;
                                Severity: Major
                                Found in performance/yslow.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                      if (v.collapse === 0) {
                                                                          x.innerHTML = "Expand All"
                                                                      }
                                  Severity: Major
                                  Found in performance/yslow.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                        if (r >= 60) {
                                                                            q = "D"
                                                                        } else {
                                                                            if (r >= 50) {
                                                                                q = "E"
                                    Severity: Major
                                    Found in performance/yslow.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                          if (r[q].id === u) {
                                                                              return r[q]
                                                                          }
                                      Severity: Major
                                      Found in performance/yslow.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                            if (F.test(A)) {
                                                                                w = 1;
                                                                                break
                                                                            }
                                        Severity: Major
                                        Found in performance/yslow.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language