hnrysmth/global-thermonuclear-war

View on GitHub

Showing 120 of 120 total issues

Avoid deeply nested control flow statements.
Open

    return clone;},cleanData:function cleanData(elems){var data,elem,type,special=jQuery.event.special,i=0;for(;(elem=elems[i])!==undefined;i++){if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type);// This is a shortcut to avoid jQuery.event.remove's overhead
    }else{jQuery.removeEvent(elem,type,data.handle);}}}// Support: Chrome <=35 - 45+
Severity: Major
Found in app.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

        for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src){// Optional AJAX dependency, but won't run scripts if not present
        if(jQuery._evalUrl){jQuery._evalUrl(node.src);}}else{DOMEval(node.textContent.replace(rcleanScript,""),doc);}}}}}}return collection;}function _remove(elem,selector,keepData){var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;for(;(node=nodes[i])!=null;i++){if(!keepData&&node.nodeType===1){jQuery.cleanData(getAll(node));}if(node.parentNode){if(keepData&&jQuery.contains(node.ownerDocument,node)){setGlobalEval(getAll(node,"script"));}node.parentNode.removeChild(node);}}return elem;}jQuery.extend({htmlPrefilter:function htmlPrefilter(html){return html.replace(rxhtmlTag,"<$1></$2>");},clone:function clone(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(true),inPage=jQuery.contains(elem.ownerDocument,elem);// Fix IE cloning issues
    Severity: Major
    Found in app.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
          }else if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results;}}// Take advantage of querySelectorAll
      Severity: Major
      Found in app.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

            tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results;}break;}}}}// Compile and execute a filtering function if one is not provided
        Severity: Major
        Found in app.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

              elems=context.getElementsByName(id);i=0;while(elem=elems[i++]){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}}}return[];}};}// Tag
          Severity: Major
          Found in app.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                temp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){// Restore matcherIn since elem is not yet a final match
                temp.push(matcherIn[i]=elem);}}postFinder(null,matcherOut=[],temp,xml);}// Move matched elements from seed to results to keep them synchronized
            Severity: Major
            Found in app.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                  while(cur.indexOf(" "+clazz+" ")>-1){cur=cur.replace(" "+clazz+" "," ");}}// Only assign if different to avoid unneeded rendering.
              Severity: Major
              Found in app.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                    if(nodeType===9){if(elem=context.getElementById(m)){// Support: IE, Opera, Webkit
                    // TODO: identify versions
                    // getElementById can match elements by name instead of ID
                    if(elem.id===m){results.push(elem);return results;}}else{return results;}// Element context
                    }else{// Support: IE, Opera, Webkit
                Severity: Major
                Found in app.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                      groups=tokenize(selector);i=groups.length;while(i--){groups[i]="#"+nid+" "+toSelector(groups[i]);}newSelector=groups.join(",");// Expand context for sibling selectors
                  Severity: Major
                  Found in app.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                        newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;}if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){}finally{if(nid===expando){context.removeAttribute("id");}}}}}}// All others
                    Severity: Major
                    Found in app.js - About 45 mins to fix

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

                          function safeActiveElement(){try{return document.activeElement;}catch(err){}}function _on(elem,types,selector,data,fn,one){var origFn,type;// Types can be a map of types/handlers
                      Severity: Minor
                      Found in app.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                            if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[];}else{clone=src&&jQuery.isPlainObject(src)?src:{};}// Never move original objects, clone them
                        Severity: Major
                        Found in app.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                              if(newCache[2]=matcher(elem,context,xml)){return true;}}}}}return false;};}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}}return true;}:matchers[0];}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results);}return results;}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i);}}}}return newUnmatched;}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,// Get initial elements from seed or context
                          Severity: Major
                          Found in app.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break;}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(// If the preceding token was a descendant combinator, insert an implicit any-element `*`
                            Severity: Major
                            Found in app.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                  if(nid=context.getAttribute("id")){nid=nid.replace(rcssescape,fcssescape);}else{context.setAttribute("id",nid=expando);}// Prefix every selector in the list
                              Severity: Major
                              Found in app.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                    if(!event.rnamespace||event.rnamespace.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation();}}}}}// Call the postDispatch hook for the mapped type
                                Severity: Major
                                Found in app.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);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}}}}return{state:"success",data:response};}jQuery.extend({// Counter for holding the number of active queries
                                  Severity: Major
                                  Found in app.js - About 45 mins to fix

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

                                            function iterator(obj, iteratee, memo, keys, index, length) {
                                    Severity: Minor
                                    Found in app.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                          if(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false;}}// Reverse direction for :only-* (if we haven't yet done so)
                                      Severity: Major
                                      Found in app.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                            while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){// Cache the index of each encountered element
                                            if(useCache){outerCache=node[expando]||(node[expando]={});// Support: IE <9 only
                                            // Defend against cloned attroperties (jQuery gh-1709)
                                            uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});uniqueCache[type]=[dirruns,diff];}if(node===elem){break;}}}}}// Incorporate the offset, then check against cycle size
                                        Severity: Major
                                        Found in app.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language