hnrysmth/global-thermonuclear-war

View on GitHub

Showing 103 of 120 total issues

File app.js has 3473 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/******/ (function(modules) { // webpackBootstrap
/******/     // The module cache
/******/     var installedModules = {};

/******/     // The require function
Severity: Major
Found in app.js - About 1 wk to fix

    Function Sizzle has 286 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

         */function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,// Local document vars
        setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,// Instance-specific data
        expando="sizzle"+1*new Date(),preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),sortOrder=function sortOrder(a,b){if(a===b){hasDuplicate=true;}return 0;},// Instance methods
        hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,push_native=arr.push,push=arr.push,slice=arr.slice,// Use a stripped-down indexOf as it's faster than native
        // https://jsperf.com/thor-indexof-vs-for/5
    Severity: Major
    Found in app.js - About 1 day to fix

      Function set has 88 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              set: function set(models, options) {
                if (models == null) return;
      
                options = _.extend({}, setOptions, options);
                if (options.parse && !this._isModel(models)) {
      Severity: Major
      Found in app.js - About 3 hrs to fix

        Function ajax has 84 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            ajax:function ajax(url,options){// If url is an object, simulate pre-1.5 signature
            if((typeof url==="undefined"?"undefined":_typeof(url))==="object"){options=url;url=undefined;}// Force options to be an object
            options=options||{};var transport,// URL without anti-cache param
            cacheURL,// Response headers
            responseHeadersString,responseHeaders,// timeout handle
        Severity: Major
        Found in app.js - About 3 hrs to fix

          Consider simplifying this complex logical expression.
          Open

              if(forward&&useCache){// Seek `elem` from a previously-cached index
              // ...in a gzip-friendly way
              node=parent;outerCache=node[expando]||(node[expando]={});// Support: IE <9 only
              // Defend against cloned attroperties (jQuery gh-1709)
              uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(// Fallback to seeking `elem` from the start
          Severity: Critical
          Found in app.js - About 2 hrs to fix

            Function eq has 53 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  var eq = function eq(a, b, aStack, bStack) {
                    // Identical objects are equal. `0 === -0`, but they aren't identical.
                    // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
                    if (a === b) return a !== 0 || 1 / a === 1 / b;
                    // A strict comparison is necessary because `null == undefined`.
            Severity: Major
            Found in app.js - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                  origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}if(special.remove){special.remove.call(elem,handleObj);}}}// Remove generic event handler if we removed something and no more handlers exist
              Severity: Critical
              Found in app.js - About 2 hrs to fix

                Function set has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        set: function set(key, val, options) {
                          if (key == null) return this;
                
                          // Handle both `"key", value` and `{key: value}` -style arguments.
                          var attrs;
                Severity: Minor
                Found in app.js - About 2 hrs to fix

                  Function setDocument has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                       */setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;// Return early if doc is invalid or already selected
                      if(doc===document||doc.nodeType!==9||!doc.documentElement){return document;}// Update global variables
                      document=doc;docElem=document.documentElement;documentIsHTML=!isXML(document);// Support: IE 9-11, Edge
                      // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
                      if(preferredDoc!==document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){// Support: IE 11, Edge
                  Severity: Minor
                  Found in app.js - About 2 hrs to fix

                    Function start has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            start: function start(options) {
                              if (History.started) throw new Error('Backbone.history has already been started');
                              History.started = true;
                    
                              // Figure out the initial configuration. Do we need an iframe?
                    Severity: Minor
                    Found in app.js - About 1 hr to fix

                      Function offApi has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            var offApi = function offApi(events, name, callback, options) {
                              if (!events) return;
                      
                              var i = 0,
                                  listening;
                      Severity: Minor
                      Found in app.js - About 1 hr to fix

                        Function sync has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              Backbone.sync = function (method, model, options) {
                                var type = methodMap[method];
                        
                                // Default options, unless specified.
                                _.defaults(options || (options = {}), {
                        Severity: Minor
                        Found in app.js - About 1 hr to fix

                          Function initialize has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            initialize: function(options) {
                              this.map = options.map;
                              this.info = options.info;
                              this.count = 0;
                          
                          
                          Severity: Minor
                          Found in _scripts/controller/multiplayer.js - About 1 hr to fix

                            Function Deferred has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                reject.call(undefined,value);}}jQuery.extend({Deferred:function Deferred(func){var tuples=[// action, add listener, callbacks,
                                // ... .then handlers, argument index, [final state]
                                ["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),1,"rejected"]],_state="pending",_promise={state:function state(){return _state;},always:function always(){deferred.done(arguments).fail(arguments);return this;},"catch":function _catch(fn){return _promise.then(null,fn);},// Keep pipe for back-compat
                                pipe:function pipe()/* fnDone, fnFail, fnProgress */{var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){// Map tuples (progress, done, fail) to arguments (done, fail, progress)
                                var fn=jQuery.isFunction(fns[tuple[4]])&&fns[tuple[4]];// deferred.progress(function() { bind to newDefer or newDefer.notify })
                            Severity: Minor
                            Found in app.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                  initialInUnit=(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){// Trust units reported by jQuery.css
                                  unit=unit||initialInUnit[3];// Make sure we update the tween properties later on
                                  valueParts=valueParts||[];// Iteratively approximate from a nonzero starting point
                                  initialInUnit=+initial||1;do{// If previous iteration zeroed out, double until we get *something*.
                                  // Use string for doubling so we don't accidentally see scale as unchanged below
                              Severity: Critical
                              Found in app.js - About 1 hr to fix

                                Function save has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        save: function save(key, val, options) {
                                          // Handle both `"key", value` and `{key: value}` -style arguments.
                                          var attrs;
                                          if (key == null || (typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object') {
                                            attrs = key;
                                Severity: Minor
                                Found in app.js - About 1 hr to fix

                                  Function template has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        _.template = function (text, settings, oldSettings) {
                                          if (!settings && oldSettings) settings = oldSettings;
                                          settings = _.defaults({}, settings, _.templateSettings);
                                  
                                          // Combine delimiters into one regular expression via alternation.
                                  Severity: Minor
                                  Found in app.js - About 1 hr to fix

                                    Function Callbacks has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                         */jQuery.Callbacks=function(options){// Convert options from String-formatted to Object-formatted if needed
                                        // (we check in cache first)
                                        options=typeof options==="string"?createOptions(options):jQuery.extend({},options);var// Flag to know if list is currently firing
                                        firing,// Last fire value for non-forgettable lists
                                        memory,// Flag to know if list was already fired
                                    Severity: Minor
                                    Found in app.js - About 1 hr to fix

                                      Function throttle has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            _.throttle = function (func, wait, options) {
                                              var context, args, result;
                                              var timeout = null;
                                              var previous = 0;
                                              if (!options) options = {};
                                      Severity: Minor
                                      Found in app.js - About 1 hr to fix

                                        Function triggerEvents has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              var triggerEvents = function triggerEvents(events, args) {
                                                var ev,
                                                    i = -1,
                                                    l = events.length,
                                                    a1 = args[0],
                                        Severity: Minor
                                        Found in app.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language