hnrysmth/global-thermonuclear-war

View on GitHub

Showing 120 of 120 total issues

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

        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

          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

            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

          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

                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

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

                  parts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];}return expanded;}};if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;}});jQuery.fn.extend({css:function css(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(jQuery.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles);}return map;}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name);},name,value,arguments.length>1);}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function init(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||jQuery.easing._default;this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px");},cur:function cur(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this);},run:function run(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);}else{this.pos=eased=percent;}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}if(hooks&&hooks.set){hooks.set(this);}else{Tween.propHooks._default.set(this);}return this;}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function get(tween){var result;// Use a property on the element directly when it is not a DOM element,
              Severity: Minor
              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

                      sel=handleObj.selector+" ";if(matchedSelectors[sel]===undefined){matchedSelectors[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>-1:jQuery.find(sel,this,null,[cur]).length;}if(matchedSelectors[sel]){matchedHandlers.push(handleObj);}}if(matchedHandlers.length){handlerQueue.push({elem:cur,handlers:matchedHandlers});}}}}// Add the remaining (directly-bound) handlers
                  Severity: Major
                  Found in app.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                        if(hasScripts){// Support: Android <=4.0 only, PhantomJS 1 only
                        // push.apply(_, arraylike) throws on ancient WebKit
                        jQuery.merge(scripts,getAll(node,"script"));}}callback.call(collection[i],node,i);}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;// Reenable scripts
                    Severity: Major
                    Found in app.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                          if(!conv){for(conv2 in converters){// If conv2 outputs current
                          tmp=conv2.split(" ");if(tmp[1]===current){// If prev can be converted to accepted input
                          conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){// Condense equivalence converters
                          if(conv===true){conv=converters[conv2];// Otherwise, insert the intermediate dataType
                          }else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}break;}}}}// Apply converter (if not an equivalence)
                      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

                              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

                                function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(" ");}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||"";}jQuery.fn.extend({addClass:function addClass(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,getClass(this)));});}if(typeof value==="string"&&value){classes=value.match(rnothtmlwhite)||[];while(elem=this[i++]){curValue=getClass(elem);cur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){j=0;while(clazz=classes[j++]){if(cur.indexOf(" "+clazz+" ")<0){cur+=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(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(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=jQuery.camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}dataPriv.set(elem,"hasDataAttrs",true);}}return data;}// Sets multiple values
                                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

                                    Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    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: Minor
                                    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

                                            }else if(copy!==undefined){target[name]=copy;}}}}// Return the modified object
                                        Severity: Major
                                        Found in app.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language