plainblack/Lacuna-Web-Client

View on GitHub

Showing 509 of 1,320 total issues

File smd.js has 2791 lines of code (exceeds 250 allowed). Consider refactoring.
Open

YAHOO.namespace("lacuna");
if (typeof YAHOO.lacuna.SMD == "undefined" || !YAHOO.lacuna.SMD) {

(function(){
    var smd = {
Severity: Major
Found in app/js-yui/smd.js - About 1 wk to fix

    File tradeMinistry.js has 2369 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    YAHOO.namespace("lacuna.buildings");
    
    if (typeof YAHOO.lacuna.buildings.Trade == "undefined" || !YAHOO.lacuna.buildings.Trade) {
        
    (function(){
    Severity: Major
    Found in app/js-yui/building/tradeMinistry.js - About 6 days to fix

      File transporter.js has 1700 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      YAHOO.namespace("lacuna.buildings");
      
      if (typeof YAHOO.lacuna.buildings.Transporter == "undefined" || !YAHOO.lacuna.buildings.Transporter) {
          
      (function(){
      Severity: Major
      Found in app/js-yui/building/transporter.js - About 4 days to fix

        File mapStar.js has 1474 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        YAHOO.namespace("lacuna");
        
        var _ = require('lodash');
        
        if (typeof YAHOO.lacuna.MapStar == "undefined" || !YAHOO.lacuna.MapStar) {
        Severity: Major
        Found in app/js-yui/mapStar.js - About 3 days to fix

          File mapper.js has 1429 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          YAHOO.namespace("lacuna");
          
          var $ = require('js/shims/jquery');
          
          if (typeof YAHOO.lacuna.Mapper == "undefined" || !YAHOO.lacuna.Mapper) {
          Severity: Major
          Found in app/js-yui/mapper.js - About 3 days to fix

            File spacePort.js has 1301 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // Stuff to do for FleetSend:
            // Make sure clicking send only sends the correct ship
            // On click of "Get Available Groups of Ships for Target" disable sends that would not arrive before arrival time.
            YAHOO.namespace("lacuna.buildings");
            
            
            Severity: Major
            Found in app/js-yui/building/spacePort.js - About 3 days to fix

              File parliament.js has 1247 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              YAHOO.namespace("lacuna.modules");
              
              if (typeof YAHOO.lacuna.modules.Parliament == "undefined" || !YAHOO.lacuna.modules.Parliament) {
                  
              (function(){
              Severity: Major
              Found in app/js-yui/module/parliament.js - About 3 days to fix

                File stats.js has 1179 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                'use strict';
                
                var StatsWindowActions = require('js/actions/windows/stats');
                
                var _ = require('lodash');
                Severity: Major
                Found in app/js-yui/stats.js - About 3 days to fix

                  File embassy.js has 1126 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  YAHOO.namespace("lacuna.buildings");
                  
                  if (typeof YAHOO.lacuna.buildings.Embassy == "undefined" || !YAHOO.lacuna.buildings.Embassy) {
                      
                  (function(){
                  Severity: Major
                  Found in app/js-yui/building/embassy.js - About 2 days to fix

                    File messaging.js has 1084 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    'use strict';
                    
                    var MailWindowActions = require('js/actions/windows/mail');
                    
                    var _ = require('lodash');
                    Severity: Major
                    Found in app/js-yui/messaging.js - About 2 days to fix

                      File mapPlanet.js has 925 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      YAHOO.namespace("lacuna");
                      
                      var _ = require('lodash');
                      
                      var WindowManagerActions    = require('js/actions/windowManager');
                      Severity: Major
                      Found in app/js-yui/mapPlanet.js - About 2 days to fix

                        Function _getCreateTab has 402 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _getCreateTab : function() {
                                    this.createEvent("onAllianceMembers");
                        
                                    var opts = ['<option value="proposeWrit" selected>Writ</option>'],
                                        dis = [], getAllianceMembers;
                        Severity: Major
                        Found in app/js-yui/module/parliament.js - About 2 days to fix

                          File game.jsx has 798 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          'use strict';
                          
                          YAHOO.namespace('lacuna');
                          
                          var React               = require('react');
                          Severity: Major
                          Found in app/js/game.jsx - About 1 day to fix

                            File profile.js has 669 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            'use strict';
                            
                            YAHOO.namespace("lacuna");
                            
                            var _ = require('lodash');
                            Severity: Major
                            Found in app/js-yui/profile.js - About 1 day to fix

                              Function _buildBuilderPanel has 287 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      _buildBuilderPanel : _.once(function() {
                                          var panelId = "buildingBuilder";
                              
                                          var panel = document.createElement("div");
                                          panel.id = panelId;
                              Severity: Major
                              Found in app/js-yui/mapPlanet.js - About 1 day to fix

                                Function _buildPlanetDetailsPanel has 272 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _buildPlanetDetailsPanel : _.once(function() {
                                            var panelId = "planetDetails";
                                            var panel = document.createElement("div");
                                            panel.id = panelId;
                                            panel.innerHTML = ['<div class="hd">Details</div>',
                                Severity: Major
                                Found in app/js-yui/mapStar.js - About 1 day to fix

                                  File archaeology.js has 586 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  YAHOO.namespace("lacuna.buildings");
                                  
                                  if (typeof YAHOO.lacuna.buildings.Archaeology == "undefined" || !YAHOO.lacuna.buildings.Archaeology) {
                                  
                                  (function(){
                                  Severity: Major
                                  Found in app/js-yui/building/archaeology.js - About 1 day to fix

                                    File intelligence.js has 550 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    YAHOO.namespace("lacuna.buildings");
                                    
                                    if (typeof YAHOO.lacuna.buildings.Intelligence == "undefined" || !YAHOO.lacuna.buildings.Intelligence) {
                                        
                                    (function(){
                                    Severity: Major
                                    Found in app/js-yui/building/intelligence.js - About 1 day to fix

                                      File textboxList.js has 545 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      YAHOO.namespace("lacuna");
                                      
                                      //only load this once
                                      if (typeof YAHOO.lacuna.TextboxList == "undefined" || !YAHOO.lacuna.TextboxList) {
                                      
                                      
                                      Severity: Major
                                      Found in app/js-yui/textboxList.js - About 1 day to fix

                                        File speciesDesigner.js has 544 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        YAHOO.namespace("lacuna");
                                        
                                        if (typeof YAHOO.lacuna.SpeciesDesigner == "undefined" || !YAHOO.lacuna.SpeciesDesigner) {
                                        
                                        (function(){
                                        Severity: Major
                                        Found in app/js-yui/speciesDesigner.js - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language