plainblack/Lacuna-Web-Client

View on GitHub

Showing 509 of 1,320 total issues

Function TBL has 109 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var TBL = function(elInput, oDataSource, oConfigs) {
        if(!oConfigs){ oConfigs = {}; }
        oConfigs.useShadow = oConfigs.useShadow || false;
        oConfigs.useIFrame = oConfigs.useIFrame || true;
        oConfigs.animVert = oConfigs.animVert || false;
Severity: Major
Found in app/js-yui/textboxList.js - About 4 hrs to fix

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

        render : function() {
            var body   = this.state.body;
            var empire = this.state.empire;
            var server = this.state.server;
    
    
    Severity: Major
    Found in app/js/components/menu/bottomBar.jsx - About 4 hrs to fix

      Function _buildDetailsPanel has 108 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              _buildDetailsPanel : _.once(function() {
                  var panelId = "buildingDetails";
                  var panel = document.createElement("div");
                  panel.id = panelId;
                  panel.innerHTML = ['<div class="hd">Details</div>',
      Severity: Major
      Found in app/js-yui/mapPlanet.js - About 4 hrs to fix

        File planetaryCommand.js has 346 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        YAHOO.namespace("lacuna.buildings");
        
        var $ = require('js/shims/jquery');
        
        var MapActions = require('js/actions/menu/map');
        Severity: Minor
        Found in app/js-yui/building/planetaryCommand.js - About 4 hrs to fix

          Function SpyStats has 107 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  SpyStats : function(){
                      if(this.SpyTable) {
                          this.SpyTable.requery();
                      }
                      else {
          Severity: Major
          Found in app/js-yui/stats.js - About 4 hrs to fix

            Function RecycleGetDisplay has 107 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    RecycleGetDisplay : function(recycle) {
                        var planet = Game.GetCurrentPlanet(),
                            ul = document.createElement("ul"),
                            li = document.createElement("li"),
                            nLi = li.cloneNode(false),
            Severity: Major
            Found in app/js-yui/building/wasteRecycling.js - About 4 hrs to fix

              Function RecycleGetDisplay has 107 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      RecycleGetDisplay : function(recycle) {
                          var planet = Game.GetCurrentPlanet(),
                              ul = document.createElement("ul"),
                              li = document.createElement("li"),
                              nLi = li.cloneNode(false),
              Severity: Major
              Found in app/js-yui/building/wasteExchanger.js - About 4 hrs to fix

                Function ColonyStats has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        ColonyStats : function(){
                            if(this.ColonyTable) {
                                this.ColonyTable.requery();
                            }
                            else {
                Severity: Major
                Found in app/js-yui/stats.js - About 4 hrs to fix

                  Function _buildDetailsPanel has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Function populateSpecies has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            populateSpecies : function() {
                                var frag = document.createDocumentFragment(),
                                    li = document.createElement('li');
                                var stat = this.speciesStats;
                    
                    
                    Severity: Major
                    Found in app/js-yui/profile.js - About 4 hrs to fix

                      Function _getHtml has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              _getHtml : function() {
                                  var nameId = Dom.generateId();
                                  var descId = Dom.generateId();
                                  return [
                                      '<div class="speciesButtons">',
                      Severity: Major
                      Found in app/js-yui/speciesDesigner.js - About 4 hrs to fix

                        File geneticsLab.js has 337 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

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

                          Function WeeklyMedalStats has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  WeeklyMedalStats : function(){
                                      if(this.WeeklyMedalTable) {
                                          this.WeeklyMedalTable.requery();
                                      }
                                      else {
                          Severity: Major
                          Found in app/js-yui/stats.js - About 3 hrs to fix

                            Function ResetPassword has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var ResetPassword = function(Login) {
                                    this.createEvent("onResetSuccessful");
                                    this._login = Login;
                            
                                    this.emailId = "resetPasswordEmail";
                            Severity: Major
                            Found in app/js-yui/login.js - About 3 hrs to fix

                              File shipyard.js has 330 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

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

                                Function _getHtml has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _getHtml : function() {
                                            return [
                                            '    <div class="hd">Options</div>',
                                            '    <div class="bd">',
                                            '        <form name="profileForm" autocomplete="off">',
                                Severity: Major
                                Found in app/js-yui/profile.js - About 3 hrs to fix

                                  Function MiningMinistryPlatforms has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          MiningMinistryPlatforms : function() {
                                              var platforms = this.platforms.platforms,
                                                  details = Dom.get("platformDetails");
                                                  
                                              if(details) {
                                  Severity: Major
                                  Found in app/js-yui/building/miningMinistry.js - About 3 hrs to fix

                                    Function ProcessStatus has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                ProcessStatus : function(status) {
                                                    if (status) {
                                    
                                                        if (status.server) {
                                                            // add everything from status empire to game empire
                                    Severity: Major
                                    Found in app/js/game.jsx - About 3 hrs to fix

                                      Function getDefaultData has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          getDefaultData : function() {
                                              return {
                                                  id        : 0,
                                                  x         : 0,
                                                  y         : 0,
                                      Severity: Major
                                      Found in app/js/stores/rpc/body.js - About 3 hrs to fix

                                        Function SpeciesDesigner has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var SpeciesDesigner = function( config ) {
                                                if ( (typeof config !== 'undefined') && (typeof config.templates !== 'undefined') && ! config.templates ) {
                                                    this.speciesTemplates = [];
                                                }
                                                else {
                                        Severity: Major
                                        Found in app/js-yui/speciesDesigner.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language