Showing 509 of 1,320 total issues
Function getAddShips
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAddShips : function() {
require('js/actions/menu/loader').show();
this.service.get_trade_ships({
session_id: Game.GetSession(""),
Function MaxValue
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MaxValue : function(e) {
var btn = Event.getTarget(e),
input = btn.input,
cp = Game.GetCurrentPlanet(),
origVal, newVal;
Function getLogs
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getLogs : function(e) {
if(e.newValue) {
if(!this.battleLogs) {
require('js/actions/menu/loader').show();
this.service.view_battle_logs({session_id:Game.GetSession(),building_id:this.building.id}, {
Function getForeign
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getForeign : function(e) {
if(e.newValue) {
if(!this.shipsForeign) {
require('js/actions/menu/loader').show();
this.service.view_foreign_ships({session_id:Game.GetSession(),building_id:this.building.id,page_number:1}, {
Function RenameSpecies
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
RenameSpecies : function(e) {
Event.stopEvent(e);
var btn = Event.getTarget(e);
var newName = Dom.get('newSpeciesName').value;
var newDesc = Dom.get('newSpeciesDesc').value.substr(0,1024);
Function getAddShips
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAddShips : function(e) {
if(e.newValue && !this.tradeShips) {
require('js/actions/menu/loader').show();
this.service.get_trade_ships({
Function bhgGetActions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bhgGetActions : function() {
require('js/actions/menu/loader').show();
Dom.setStyle("bhgActions", "display", "none");
Function ShipSend
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ShipSend : function(e) {
var btn = Event.getTarget(e);
btn.disabled = true;
var oSelf = this.Self,
Function _createSendToSelect
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createSendToSelect : function() {
var dataSource = new Util.XHRDataSource("/empire");
dataSource.connMethodPost = "POST";
dataSource.maxCacheEntries = 2;
dataSource.responseType = YAHOO.util.XHRDataSource.TYPE_JSON;
Function loadSentMessages
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadSentMessages : function() {
this._setTab(this.sent);
if(this.pager) {this.pager.destroy();}
var InboxServ = Game.Services.Inbox,
Function loadArchiveMessages
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadArchiveMessages : function() {
this._setTab(this.archive);
if(this.pager) {this.pager.destroy();}
var InboxServ = Game.Services.Inbox,
Function build
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
build : function() {
if (!this.Display) {
var container = document.createElement("div");
container.id = "notify";
Dom.addClass(container, Lib.Styles.HIDDEN);
Function getForeign
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getForeign : function(e) {
if(e.newValue) {
if(!this.shipsForeign) {
require('js/actions/menu/loader').show();
this.service.view_foreign_ships({session_id:Game.GetSession(),building_id:this.building.id,page_number:1}, {
Function loadTrashMessages
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadTrashMessages : function() {
this._setTab(this.trash);
if(this.pager) {this.pager.destroy();}
var InboxServ = Game.Services.Inbox,
Function CreateSpecies
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CreateSpecies = function(Empire) {
this.id = "createSpecies";
this._empire = Empire;
this.createEvent("onCreateSuccessful");
Function LawsPopulate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
LawsPopulate : function(){
var details = Dom.get("lawsDetails");
if(details) {
var laws = this.laws,
Function CreateEmpireSearch
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CreateEmpireSearch : function(id) {
var dataSource = new Util.XHRDataSource("/empire");
dataSource.connMethodPost = "POST";
dataSource.maxCacheEntries = 2;
dataSource.responseType = YAHOO.util.XHRDataSource.TYPE_JSON;
Function PopulateShipsMiningPlatforms
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsMiningPlatforms : function(panel) {
var ships = this.currentShips.mining_platforms || [];
details = Dom.get("planetDetailMiningShips");
if(details) {
Function PopulateShipsExcavators
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsExcavators : function(panel) {
var ships = this.currentShips.excavators || [];
details = Dom.get("planetDetailExcavators");
if(details) {
Function FireBFG
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FireBFG : function(e) {
var button = Event.getTarget(e),
body = Lib.getSelectedOptionValue('proposeFireBfgBody'),
reason = Dom.get('proposeFireBfgReason').value;