Showing 509 of 1,320 total issues
Function onSuccess
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loader.onSuccess = function(o) {
// /////////////////////////////////////////////////////////////////////////////
// WARNING: IF YOU CHANGE THE ORDER OF THESE, THINGS WILL NOT LOAD PROPERLY! //
// /////////////////////////////////////////////////////////////////////////////
Function AvailablePopulate
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AvailablePopulate : function() {
var details = Dom.get("tradeAvailableDetails");
if(details) {
var trades = this.availableTrades.trades,
Function AvailablePopulate
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AvailablePopulate : function() {
var details = Dom.get("tradeAvailableDetails");
if(details) {
var trades = this.availableMercs.trades,
Function PopulateShipsIncomingTab
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsIncomingTab : function(panel) {
var ships = this.currentShips.incoming || [],
details = Dom.get(panel.isStarPanel ? "starDetailIncomingShips" : "planetDetailIncomingShips");
if(ships.length > 0) {
Consider simplifying this complex logical expression. Open
Open
if (typeof YAHOO.lacuna.MapPlanet == "undefined" || !YAHOO.lacuna.MapPlanet) {
(function(){
var Lang = YAHOO.lang,
Util = YAHOO.util,
Consider simplifying this complex logical expression. Open
Open
if (typeof YAHOO.lacuna.Game === 'undefined' || !YAHOO.lacuna.Game) {
(function() {
var Util = YAHOO.util;
var Lang = YAHOO.lang;
Function getDefaultData
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDefaultData : function() {
return {
id : '',
name : '',
image : '',
Function PopulateFleetSendTab
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateFleetSendTab : function(target, ships) {
var details = Dom.get("sendFleetAvail"),
detailsParent = details.parentNode,
li = document.createElement("li");
Function PrisonersPopulate
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PrisonersPopulate : function() {
var details = Dom.get("prisonersDetails");
if(details) {
var prisoners = this.prisoners,
div = document.createElement("div"),
Function _getResourcesTab
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getResourcesTab : function() {
var food_items = '',
foods = Lib.ResourceTypes.food;
Function processMessages
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processMessages : function(results, is) {
var list = this.list,
messages = results.messages,
li = document.createElement("li"),
isTab = is || {};
Function render
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function() {
var items = [
{
title : 'My Colonies',
key : 'colonies',
Function _createImage
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createImage : function() {
if(!this.imageHolder) {
var image = this.domElement.appendChild(document.createElement('div'));
Dom.setStyle(image, "width", this.tileSizeInPx + 'px');
Dom.setStyle(image, "height", this.tileSizeInPx + 'px');
Function populateView
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
populateView : function() {
var glyphs = this.glyphs,
details = Dom.get("archaeologyGlyphDetails");
if(details) {
Function DetailsProcess
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DetailsProcess : function(oResults, url, x, y) {
var building = oResults.building,
panel = this.buildingDetails,
currBuildingId = this.currentBuilding ? this.currentBuilding.building.id : undefined;
if(panel.isVisible() && (currBuildingId != oResults.building.id)) {
Function _getHtml
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getHtml : function() {
return [
' <div class="hd">Universe Stats</div>',
' <div class="bd">',
' <div id="statsTabs" class="yui-navset">',
Function DumpGetDisplay
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DumpGetDisplay : function() {
var div = document.createElement("div"),
resources = [],
rKey;
Function _getSendFleetTab
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getSendFleetTab : function() {
var currYear = Lacuna.Game.ServerData.time.getUTCFullYear();
var currMon = Lacuna.Game.ServerData.time.getUTCMonth() + 1;
var currDay = Lacuna.Game.ServerData.time.getUTCDate();
var currHour = Lacuna.Game.ServerData.time.getUTCHours();
Function DumpGetDisplay
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DumpGetDisplay : function() {
var div = document.createElement("div"),
resources = [],
rKey;
Function success
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success:function(o){
require('js/actions/menu/loader').hide();
var profile = o.result.profile;
this.currentEmpire = profile;
this.empire.innerHTML = profile.name;