plainblack/Lacuna-Web-Client

View on GitHub

Showing 509 of 1,320 total issues

Function MinePopulate has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        MinePopulate : function() {
            var details = Dom.get("tradeMineDetails");
            
            if(details) {
                var trades = this.mineTrades.trades,
Severity: Minor
Found in app/js-yui/building/transporter.js - About 1 hr to fix

    Function AddGlyph has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            AddGlyph : function(e, matchedEl, container){
                var quantity = matchedEl.previousSibling.value*1,
                    li = matchedEl.parentNode,
                    c = Dom.get("tradeAddItems");
                if(li && c) {
    Severity: Minor
    Found in app/js-yui/building/transporter.js - About 1 hr to fix

      Function PushAddGlyph has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              PushAddGlyph : function(e, matchedEl, container){
                  var quantity = matchedEl.previousSibling.value*1,
                      li = matchedEl.parentNode,
                      c = Dom.get("tradePushItems");
                  if(li && c) {
      Severity: Minor
      Found in app/js-yui/building/transporter.js - About 1 hr to fix

        Function AddGlyphSummary has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                AddGlyphSummary : function(e, matchedEl, container){
                    var quantity = matchedEl.previousSibling.value*1,
                        li = matchedEl.parentNode,
                        c = Dom.get("tradeAddItems");
                    if(li && c) {
        Severity: Minor
        Found in app/js-yui/building/tradeMinistry.js - About 1 hr to fix

          Function PushAddGlyphSummary has 44 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  PushAddGlyphSummary : function(e, matchedEl, container){
                      var quantity = matchedEl.previousSibling.value*1,
                          li = matchedEl.parentNode,
                          c = Dom.get("tradePushItems");
                      if(li && c) {
          Severity: Minor
          Found in app/js-yui/building/tradeMinistry.js - About 1 hr to fix

            Function MinePopulate has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    MinePopulate : function() {
                        var details = Dom.get("tradeMineDetails");
                        
                        if(details) {
                            var trades = this.mineMercs.trades,
            Severity: Minor
            Found in app/js-yui/building/mercenariesGuild.js - About 1 hr to fix

              Function MinePopulate has 44 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      MinePopulate : function() {
                          var details = Dom.get("tradeMineDetails");
                          
                          if(details) {
                              var trades = this.mineTrades.trades,
              Severity: Minor
              Found in app/js-yui/building/tradeMinistry.js - About 1 hr to fix

                Function loadInboxMessages has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        loadInboxMessages : function() {
                            this._setTab(this.inbox);
                            if(this.pager) {this.pager.destroy();}
                            var InboxServ = Game.Services.Inbox,
                                data = {
                Severity: Minor
                Found in app/js-yui/messaging.js - About 1 hr to fix

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

                          PlanPopulate : function(){
                              var div = Dom.get("planDetails");
                              if(div) {
                                  var divParent = div.parentNode,
                                      ul = document.createElement("ul"),
                  Severity: Minor
                  Found in app/js-yui/building/planetaryCommand.js - About 1 hr to fix

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

                            Recycle : function(e, options) {
                                var planet = Game.GetCurrentPlanet();
                                if(planet) {
                                    var ore = this.recycleOreEl.value*1,
                                        water = this.recycleWaterEl.value*1,
                    Severity: Minor
                    Found in app/js-yui/building/wasteExchanger.js - About 1 hr to fix

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

                              _getPlanTab : function() {
                                  
                                  Event.onContentReady("stationLabLevelsContainer", this.PlanPopulate, this, true);
                                  
                                  Event.on("stationLabGoToPlan", "click", function(){
                      Severity: Minor
                      Found in app/js-yui/building/spaceStationLab.js - About 1 hr to fix

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

                            bhgParseResult : function(result, type) {
                                var out = [ '<div class="yui-gd" style="margin-bottom:2px;">',
                                  '  <div style="border:1px white solid;" class="yui-u" style="width:100%">',
                                  '    <label style="font-weight:bold;">',type,'</label>',
                                  '    <div>'
                        Severity: Minor
                        Found in app/js-yui/building/blackHoleGenerator.js - About 1 hr to fix

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

                                  Recycle : function(e, options) {
                                      var planet = Game.GetCurrentPlanet();
                                      if(planet) {
                                          var ore = this.recycleOreEl.value*1,
                                              water = this.recycleWaterEl.value*1,
                          Severity: Minor
                          Found in app/js-yui/building/wasteRecycling.js - About 1 hr to fix

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

                                    PopulateShipsOrbitingTab : function(panel) {
                                        var ships = this.currentShips.orbiting || [],
                                            details = Dom.get("planetDetailOrbitingShips"),
                                            detailsParent = details.parentNode,
                                            li = document.createElement("li");
                            Severity: Minor
                            Found in app/js-yui/mapStar.js - About 1 hr to fix

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

                                      PopulateShipsUnavailTab : function(panel) {
                                          var ships = this.currentShips.unavailable,
                                              details = Dom.get(panel.isStarPanel ? "starDetailUnavailShips" : "planetDetailUnavailShips"),
                                              detailsParent = details.parentNode,
                                              li = document.createElement("li");
                              Severity: Minor
                              Found in app/js-yui/mapStar.js - About 1 hr to fix

                                Function displayMissions has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        displayMissions : function() {
                                            var missions = this.missions,
                                                ul = Dom.get("missionsAvailable");
                                
                                            if(ul) {
                                Severity: Minor
                                Found in app/js-yui/building/missionCommand.js - About 1 hr to fix

                                  Function _getTransmitTab has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          _getTransmitTab : function() {
                                              var div = document.createElement("div");
                                              div.innerHTML = [
                                                  '<div>',
                                                  '    <button class="subspaceTransmit" id="subspaceTransmitFood">Transmit <span class="smallImg"><img src="',Lib.AssetUrl,'ui/s/food.png" class="smallFood" /></span>3600 Food</button>',
                                  Severity: Minor
                                  Found in app/js-yui/building/subspaceSupplyDepot.js - About 1 hr to fix

                                    Function _getFoodTab has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _getFoodTab : function() {
                                                var stored = this.result.food_stored;
                                                var details = function(type) {
                                                    return [
                                                            '<li title="',Lib.formatNumber(stored[type]),'"><label>',
                                    Severity: Minor
                                    Found in app/js-yui/building/foodReserve.js - About 1 hr to fix

                                      Function SpyPopulate has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              SpyPopulate : function() {
                                                  var details = Dom.get("securityDetails");
                                                  if(details) {
                                                      var spies = this.spies,
                                                          div = document.createElement("div"),
                                      Severity: Minor
                                      Found in app/js-yui/building/security.js - About 1 hr to fix

                                        Function StashDonateAdd has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                StashDonateAdd : function(e, matchedEl, container){
                                                    var quantity = Lib.getSelectedOptionValue(matchedEl.previousSibling)*1,
                                                        li = matchedEl.parentNode,
                                                        c = Dom.get("embassyStashToDonate");
                                                    if(quantity && c) {
                                        Severity: Minor
                                        Found in app/js-yui/building/embassy.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language