Showing 509 of 1,320 total issues
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function() {
return (
<div>
<div className="ui grid">
Function Failure
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Failure : function(o, retry, fail) {
// session expired
if (o.error.code === 1006) {
Game.Reset();
Game.DoLogin(o.error);
Function exports
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(options) {
var b = browserify(['./app/js/load.js'], {
extensions : [
'.jsx'
],
Function Trade
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Trade : function() {
var data = {
session_id: Game.GetSession(""),
building_id: this.building.id,
have: Lib.getSelectedOptionValue(Dom.get("transporterOneForOneHave")),
Function Repair
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Repair : function(e) {
var btn = Event.getTarget(e);
btn.disabled = true;
require('js/actions/menu/loader').show();
Game.Services.Buildings.Generic.repair({session_id:Game.GetSession(),building_id:this.building.id}, {
Function getDefaultData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDefaultData : function() {
return {
bodies : {
colonies : [],
mystations : [],
Function DumpGetDisplay
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DumpGetDisplay : function() {
var ul = document.createElement('ul'),
li = document.createElement('li'),
nLi = li.cloneNode(false);
nLi.innerHTML = 'Convert water into waste.';
Function addResourceOptions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addResourceOptions : function(selectElement, selected) {
for(r in Lib.ResourceTypes) {
if(Lib.ResourceTypes.hasOwnProperty(r)) {
resource = Lib.ResourceTypes[r];
if(Lang.isArray(resource)) {
Function InvitesAccept
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
InvitesAccept : function() {
if(confirm(['Are you sure you want to accept the alliance invite from ', this.Invite.name,'?'].join(''))) {
this.Self.service.accept_invite({
session_id:Game.GetSession(""),
building_id:this.Self.building.id,
Function getOrbiting
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getOrbiting : function(e) {
if(e.newValue) {
if(!this.shipsOrbiting) {
require('js/actions/menu/loader').show();
this.service.view_ships_orbiting({session_id:Game.GetSession(),building_id:this.building.id}, {
Function QuickDialog
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QuickDialog : function(config, afterRender, afterHide) {
var container = document.createElement('div');
if (config.id) {
container.id = config.id;
delete config.id;
Function func
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var func = function(params, origOpts) {
var retry = function() {
var opts = { retry : 0 };
YAHOO.lang.augmentObject(opts, origOpts, true);
opts.retry++;
Function addTileData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addTileData : function(oTiles, filterOutDeleted) {
var startZoomLevel = 0,
newTileCache = {};
for(var tKey in oTiles) {
if(oTiles.hasOwnProperty(tKey)){
Function getAvailable
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAvailable : function(e) {
if(e.newValue) {
require('js/actions/menu/loader').show();
var data = {session_id:Game.GetSession(),building_id:this.building.id,page_number:1},
selVal = Lib.getSelectedOptionValue("tradeFilter");
Function MineWithdraw
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MineWithdraw : function() {
if(confirm(['Are you sure you want to withdraw the trade asking for ', this.Trade.ask, ' essentia and offering ', this.Trade.offer.join(', '),'?'].join(''))) {
require('js/actions/menu/loader').show();
this.Self.service.withdraw_from_market({
session_id:Game.GetSession(""),
Function _getSearchTab
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getSearchTab : function() {
var tab = new YAHOO.widget.Tab({ label: "Search", content: [
'<div id="archaeologySearchContainer">',
' <ul id="archaeologySearchForm">',
' <li>Search Ore:<select id="archaeologyOre"></select></li>',
Function _getTrainTab
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getTrainTab : function() {
var spies = this.result.spies;
this.trainTab = new YAHOO.widget.Tab({ label: "Train Spies", content: [
'<div class="yui-g">',
' <div class="yui-u first">',
Function ShipNameSave
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ShipNameSave : function(e) {
Event.stopEvent(e);
require('js/actions/menu/loader').show();
var newName = this.Input.value;
Function success
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success : function(o){
this.rpcSuccess(o);
for(var i=0; i<lis.length; i++) {
if(lis[i].Object) {
Function DumpGetDisplay
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DumpGetDisplay : function() {
var ul = document.createElement('ul'),
li = document.createElement('li'),
nLi = li.cloneNode(false);
nLi.innerHTML = 'Convert energy into waste.';