Showing 509 of 1,320 total issues
Function MinePopulate
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MinePopulate : function() {
var details = Dom.get("tradeMineDetails");
if(details) {
var trades = this.mineTrades.trades,
Function AddGlyph
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AddGlyph : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradeAddItems");
if(li && c) {
Function PushAddGlyph
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PushAddGlyph : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradePushItems");
if(li && c) {
Function AddGlyphSummary
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AddGlyphSummary : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradeAddItems");
if(li && c) {
Function PushAddGlyphSummary
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PushAddGlyphSummary : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradePushItems");
if(li && c) {
Function MinePopulate
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MinePopulate : function() {
var details = Dom.get("tradeMineDetails");
if(details) {
var trades = this.mineMercs.trades,
Function MinePopulate
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MinePopulate : function() {
var details = Dom.get("tradeMineDetails");
if(details) {
var trades = this.mineTrades.trades,
Function loadInboxMessages
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadInboxMessages : function() {
this._setTab(this.inbox);
if(this.pager) {this.pager.destroy();}
var InboxServ = Game.Services.Inbox,
data = {
Function PlanPopulate
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PlanPopulate : function(){
var div = Dom.get("planDetails");
if(div) {
var divParent = div.parentNode,
ul = document.createElement("ul"),
Function Recycle
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Recycle : function(e, options) {
var planet = Game.GetCurrentPlanet();
if(planet) {
var ore = this.recycleOreEl.value*1,
water = this.recycleWaterEl.value*1,
Function _getPlanTab
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getPlanTab : function() {
Event.onContentReady("stationLabLevelsContainer", this.PlanPopulate, this, true);
Event.on("stationLabGoToPlan", "click", function(){
Function bhgParseResult
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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>'
Function Recycle
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Recycle : function(e, options) {
var planet = Game.GetCurrentPlanet();
if(planet) {
var ore = this.recycleOreEl.value*1,
water = this.recycleWaterEl.value*1,
Function PopulateShipsOrbitingTab
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsOrbitingTab : function(panel) {
var ships = this.currentShips.orbiting || [],
details = Dom.get("planetDetailOrbitingShips"),
detailsParent = details.parentNode,
li = document.createElement("li");
Function PopulateShipsUnavailTab
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsUnavailTab : function(panel) {
var ships = this.currentShips.unavailable,
details = Dom.get(panel.isStarPanel ? "starDetailUnavailShips" : "planetDetailUnavailShips"),
detailsParent = details.parentNode,
li = document.createElement("li");
Function displayMissions
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
displayMissions : function() {
var missions = this.missions,
ul = Dom.get("missionsAvailable");
if(ul) {
Function _getTransmitTab
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
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>',
Function _getFoodTab
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getFoodTab : function() {
var stored = this.result.food_stored;
var details = function(type) {
return [
'<li title="',Lib.formatNumber(stored[type]),'"><label>',
Function SpyPopulate
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SpyPopulate : function() {
var details = Dom.get("securityDetails");
if(details) {
var spies = this.spies,
div = document.createElement("div"),
Function StashDonateAdd
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StashDonateAdd : function(e, matchedEl, container){
var quantity = Lib.getSelectedOptionValue(matchedEl.previousSibling)*1,
li = matchedEl.parentNode,
c = Dom.get("embassyStashToDonate");
if(quantity && c) {