Showing 509 of 1,320 total issues
Function TBL
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function render
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function() {
var body = this.state.body;
var empire = this.state.empire;
var server = this.state.server;
Function _buildDetailsPanel
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_buildDetailsPanel : _.once(function() {
var panelId = "buildingDetails";
var panel = document.createElement("div");
panel.id = panelId;
panel.innerHTML = ['<div class="hd">Details</div>',
File planetaryCommand.js
has 346 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
var $ = require('js/shims/jquery');
var MapActions = require('js/actions/menu/map');
Function SpyStats
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SpyStats : function(){
if(this.SpyTable) {
this.SpyTable.requery();
}
else {
Function RecycleGetDisplay
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
RecycleGetDisplay : function(recycle) {
var planet = Game.GetCurrentPlanet(),
ul = document.createElement("ul"),
li = document.createElement("li"),
nLi = li.cloneNode(false),
Function RecycleGetDisplay
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
RecycleGetDisplay : function(recycle) {
var planet = Game.GetCurrentPlanet(),
ul = document.createElement("ul"),
li = document.createElement("li"),
nLi = li.cloneNode(false),
Function ColonyStats
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ColonyStats : function(){
if(this.ColonyTable) {
this.ColonyTable.requery();
}
else {
Function _buildDetailsPanel
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_buildDetailsPanel : _.once(function() {
var panelId = "starDetails";
var panel = document.createElement("div");
panel.id = panelId;
Function populateSpecies
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
populateSpecies : function() {
var frag = document.createDocumentFragment(),
li = document.createElement('li');
var stat = this.speciesStats;
Function _getHtml
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getHtml : function() {
var nameId = Dom.generateId();
var descId = Dom.generateId();
return [
'<div class="speciesButtons">',
File geneticsLab.js
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.GeneticsLab == "undefined" || !YAHOO.lacuna.buildings.GeneticsLab) {
(function(){
Function WeeklyMedalStats
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WeeklyMedalStats : function(){
if(this.WeeklyMedalTable) {
this.WeeklyMedalTable.requery();
}
else {
Function ResetPassword
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ResetPassword = function(Login) {
this.createEvent("onResetSuccessful");
this._login = Login;
this.emailId = "resetPasswordEmail";
File shipyard.js
has 330 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.Shipyard == "undefined" || !YAHOO.lacuna.buildings.Shipyard) {
(function(){
Function _getHtml
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getHtml : function() {
return [
' <div class="hd">Options</div>',
' <div class="bd">',
' <form name="profileForm" autocomplete="off">',
Function MiningMinistryPlatforms
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MiningMinistryPlatforms : function() {
var platforms = this.platforms.platforms,
details = Dom.get("platformDetails");
if(details) {
Function ProcessStatus
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ProcessStatus : function(status) {
if (status) {
if (status.server) {
// add everything from status empire to game empire
Function getDefaultData
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDefaultData : function() {
return {
id : 0,
x : 0,
y : 0,
Function SpeciesDesigner
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var SpeciesDesigner = function( config ) {
if ( (typeof config !== 'undefined') && (typeof config.templates !== 'undefined') && ! config.templates ) {
this.speciesTemplates = [];
}
else {