plainblack/Lacuna-Web-Client

View on GitHub

Showing 509 of 1,320 total issues

File security.js has 319 lines of code (exceeds 250 allowed). Consider refactoring.
Open

YAHOO.namespace("lacuna.buildings");

if (typeof YAHOO.lacuna.buildings.Security == "undefined" || !YAHOO.lacuna.buildings.Security) {
    
(function(){
Severity: Minor
Found in app/js-yui/building/security.js - About 3 hrs to fix

    Function _createHabitableOrbits has 89 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _createHabitableOrbits : function () {
                var range = 180,
                    tickSize = 30,
                    from = Sel.query(".speciesHO_from", this.container, true),
                    to = Sel.query(".speciesHO_to", this.container, true);
    Severity: Major
    Found in app/js-yui/speciesDesigner.js - About 3 hrs to fix

      Function getSpeciesStatList has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              getSpeciesStatList : function(stat) {
                  var frag = document.createDocumentFragment(),
                      li = document.createElement('li');
                  
                  var nLi = li.cloneNode(false);
      Severity: Major
      Found in app/js-yui/building/geneticsLab.js - About 3 hrs to fix

        Function PopulateBHGTab has 87 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            PopulateBHGTab : function(target, actions) {
              var details = Dom.get("bhgActionsAvail"),
                  detailsParent = details.parentNode,
                  li = document.createElement("li");
        
        
        Severity: Major
        Found in app/js-yui/building/blackHoleGenerator.js - About 3 hrs to fix

          Function _buildFindPanel has 85 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _buildFindPanel : _.once(function() {
                      var panelId = "starFind";
          
                      var panel = document.createElement("div");
                      panel.id = panelId;
          Severity: Major
          Found in app/js-yui/mapStar.js - About 3 hrs to fix

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

                    _generateService: function(serviceName, method) {
            
                        if(this[method]){
                            throw new Error("WARNING: " + serviceName + " already exists for service. Unable to generate function");
                        }
            Severity: Major
            Found in app/js-yui/rpc.js - About 3 hrs to fix

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

                  _getBHGTab : function() {
                    var zoneOptions = "";
                    var zones = this.result.task_options.zones;
                    for (var i=0; i<zones.length; i++) {
                      zoneOptions += '<option value="' + zones[i] + '">' + zones[i] + '</option>';
              Severity: Major
              Found in app/js-yui/building/blackHoleGenerator.js - About 3 hrs to fix

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

                            Start : function(query) {
                                var l = window.location;
                                Game.RPCBase = window.lacuna_rpc_base_url || l.protocol + '//' + l.host + '/';
                                Game.domain = l.hostname || 'lacunaexpanse.com';
                
                
                Severity: Major
                Found in app/js/game.jsx - About 3 hrs to fix

                  File wasteExchanger.js has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  YAHOO.namespace("lacuna.buildings");
                  
                  if (typeof YAHOO.lacuna.buildings.WasteExchanger == "undefined" || !YAHOO.lacuna.buildings.WasteExchanger) {
                      
                  (function(){
                  Severity: Minor
                  Found in app/js-yui/building/wasteExchanger.js - About 3 hrs to fix

                    File wasteRecycling.js has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    YAHOO.namespace("lacuna.buildings");
                    
                    if (typeof YAHOO.lacuna.buildings.WasteRecycling == "undefined" || !YAHOO.lacuna.buildings.WasteRecycling) {
                        
                    (function(){
                    Severity: Minor
                    Found in app/js-yui/building/wasteRecycling.js - About 3 hrs to fix

                      File distributionCenter.js has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      YAHOO.namespace("lacuna.buildings");
                      
                      if (typeof YAHOO.lacuna.buildings.DistributionCenter == "undefined" || !YAHOO.lacuna.buildings.DistributionCenter) {
                          
                      (function(){
                      Severity: Minor
                      Found in app/js-yui/building/distributionCenter.js - About 3 hrs to fix

                        Function render has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            render : function() {
                                return (
                                    <div className="ui grid">
                        
                                        <div className="centered row">
                        Severity: Major
                        Found in app/js/components/window/essentia/boostsTab.jsx - About 3 hrs to fix

                          Function _populateList has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _populateList : function(sQuery, oResponse, oPayload) {
                                      // Clear previous timeout
                                      if(this._nTypeAheadDelayID != -1) {
                                          clearTimeout(this._nTypeAheadDelayID);
                                      }
                          Severity: Major
                          Found in app/js-yui/textboxList.js - About 3 hrs to fix

                            Function Tick has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        Tick : function() {
                                            var ED = Lacuna.Game.EmpireData;
                                            var SD = Lacuna.Game.ServerData;
                                            var dt = (new Date()).getTime();
                                            var diff = dt - Lacuna.Game.recTime;
                            Severity: Major
                            Found in app/js/game.jsx - About 3 hrs to fix

                              Function ViewPopulate has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      ViewPopulate : function() {
                                          var details = Dom.get("shipsViewDetails");
                              
                                          if(details) {
                                              var ships = this.shipsView.ships,
                              Severity: Major
                              Found in app/js-yui/building/spacePort.js - About 3 hrs to fix

                                File rightSidebar.jsx has 294 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                'use strict';
                                
                                var React               = require('react');
                                var PureRenderMixin     = require('react-addons-pure-render-mixin');
                                var Reflux              = require('reflux');
                                Severity: Minor
                                Found in app/js/components/menu/rightSidebar.jsx - About 3 hrs to fix

                                  Function SupplyChainShipsPopulate has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          SupplyChainShipsPopulate : function() {
                                              var ships = this.supply_chain_ships,
                                                  no_ships = Dom.get("supplyChainShipsNone"),
                                                  details = Dom.get("supplyChainShipsDetails"),
                                                  detailsParent = details.parentNode;
                                  Severity: Major
                                  Found in app/js-yui/building/tradeMinistry.js - About 3 hrs to fix

                                    Function displayMessage has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            displayMessage : function(msg) {
                                                if(msg) {
                                                /* {
                                                        "id" : "id-goes-here",
                                                        "from" : "Dr. Stephen T. Colbert DFA",
                                    Severity: Major
                                    Found in app/js-yui/messaging.js - About 3 hrs to fix

                                      File theDillonForge.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      YAHOO.namespace("lacuna.buildings");
                                      
                                      if (typeof YAHOO.lacuna.buildings.TheDillonForge == "undefined" || !YAHOO.lacuna.buildings.TheDillonForge) {
                                          
                                      (function(){
                                      Severity: Minor
                                      Found in app/js-yui/building/theDillonForge.js - About 3 hrs to fix

                                        Function Push has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                Push : function() {
                                                    var data = {
                                                            session_id: Game.GetSession(""),
                                                            building_id: this.building.id,
                                                            target_id: Lib.getSelectedOptionValue(Dom.get("tradePushColony")),
                                        Severity: Major
                                        Found in app/js-yui/building/tradeMinistry.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language