suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

Avoid deeply nested control flow statements.
Open

                                    if (isNaN(parseInt(v[v.length - 1], 10))) {
                                        s.push(t)
                                    }
Severity: Major
Found in performance/yslow.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        if (isNaN(parseInt(v[v.length - 1], 10))) {
                                            q.push(E[u])
                                        }
    Severity: Major
    Found in performance/yslow.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          if (/javascript/.test(q)) {
                                              r = "js"
                                          } else {
                                              if (/flash/.test(q)) {
                                                  r = "flash"
      Severity: Major
      Found in performance/yslow.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                            if (D.score >= 0) {
                                                F.score = parseInt(D.score, 10)
                                            } else {
                                                if (D.score === -1) {
                                                    F.score = "n/a"
        Severity: Major
        Found in performance/yslow.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

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

            Avoid deeply nested control flow statements.
            Open

                                                if (I[F].id === "expand-all-text") {
                                                    x = I[F]
                                                }
            Severity: Major
            Found in performance/yslow.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                                      if (x.style && typeof x.style.getPropertyValue === "function") {
                                                          r = x.style.getPropertyValue("src");
                                                          r = y.exec(r);
                                                          if (r) {
                                                              r = r[1];
              Severity: Major
              Found in performance/yslow.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                } else if ( isHttpEquiv ) {
                                    if ( getHttpEquiv === "" || getHttpEquiv === null ) {
                                        errDesc = 'Please fill the http-equiv attribute on meta tag.';
                                        pushErrMsg(errDesc);
                                    } else if ( getHttpEquiv !== "content-type" ) {
                Severity: Major
                Found in seo/seoChecker.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if ( conv && s[ "throws" ] ) {
                                          response = conv( response );
                                      } else {
                                          try {
                                              response = conv( response );
                  Severity: Major
                  Found in _frontend/assets/js/vendor/jquery.min.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                        if (s.name === "saveas-name") {
                                                            u = s.value
                                                        } else {
                                                            if (s.name === "ruleset-name") {
                                                                z = s.value
                    Severity: Major
                    Found in performance/yslow.js - About 45 mins to fix

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

                          init: function( elem, options, prop, end, easing, unit ) {
                      Severity: Minor
                      Found in _frontend/assets/js/vendor/jquery.min.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 _frontend/assets/js/vendor/jquery.min.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if ( name in thisCache ) {
                                                  name = [ name ];
                                              } else {
                                                  name = name.split(" ");
                                              }
                          Severity: Major
                          Found in _frontend/assets/js/vendor/jquery.min.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( rscriptType.test( node.type || "" ) &&
                                                        !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
                            
                                                        if ( node.src ) {
                                                            // Optional AJAX dependency, but won't run scripts if not present
                            Severity: Major
                            Found in _frontend/assets/js/vendor/jquery.min.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if ( elem && elem.parentNode ) {
                                                      // Handle the case where IE, Opera, and Webkit return items
                                                      // by name instead of ID
                                                      if ( elem.id === m ) {
                                                          results.push( elem );
                              Severity: Major
                              Found in _frontend/assets/js/vendor/jquery.min.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                                        return false;
                                                                    }
                                Severity: Major
                                Found in _frontend/assets/js/vendor/jquery.min.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 _frontend/assets/js/vendor/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 _frontend/assets/js/vendor/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 _frontend/assets/js/vendor/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 _frontend/assets/js/vendor/jquery.min.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language