Showing 509 of 1,320 total issues
Function _getPlanetTab
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getPlanetTab : function() {
var planet = this.result.planet;
var details = function(type,imgclass) {
var Type = Lib.capitalizeFirstLetter(type);
var stored = planet[type+"_stored"] || planet[type];
Function incomingSupplyChainList
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
incomingSupplyChainList : function() {
var supply_chains = this.incoming_supply_chains;
if ( supply_chains.length == 0 ) {
Dom.setStyle("incomingSupplyChainList", "display", "none");
Function AddShipSummary
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AddShipSummary : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradeAddItems");
if(li && c) {
Function _buildAttachmentPanel
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_buildAttachmentPanel : _.once(function() {
var panelId = "attachmentPanel";
var panel = document.createElement("div");
panel.id = panelId;
Function AddPlan
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AddPlan : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradeAddItems");
if(li && c) {
Function _getOrbitsHtml
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getOrbitsHtml : function() {
var data = this._serverOverview.orbits;
return ['<ul class="statsList">',
'<li><label>Orbits</label><ul class="statsSubList">',
Function PushAddPlan
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PushAddPlan : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradePushItems");
if(quantity && li && c) {
Function PushAddPlanSummary
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PushAddPlanSummary : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradePushItems");
if(quantity && li && c) {
Function AddPlanSummary
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AddPlanSummary : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradeAddItems");
if(li && c) {
File bottomBar.jsx
has 252 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var React = require('react');
var ReactDOM = require('react-dom');
var ReactDOMServer = require('react-dom/server');
Function _getPushTab
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getPushTab : function() {
this.push = new YAHOO.widget.Tab({ label: "Push", content: [
'<div id="pHt"><div class="tradeStash yui-g">',
' <div class="yui-u first">',
' <legend>On Planet</legend>',
Function PopulateShipsSendTab
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsSendTab : function(target, ships) {
var details = Dom.get("sendShipAvail"),
detailsParent = details.parentNode,
li = document.createElement("li");
Function PopulateFleetSendTab
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateFleetSendTab : function(panel) {
var ships = this.currentShips.available,
details = Dom.get(panel.isStarPanel ? "starDetailSendFleet" : "planetDetailSendFleet"),
btn = Dom.get(panel.isStarPanel ? "starDetailSendFleetSubmit" : "planetDetailSendFleetSubmit"),
detailsParent = details.parentNode,
Function MoveSpies
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MoveSpies : function(e, tab) {
Event.stopEvent(e);
var spies = [];
var ships = tab.avail.spyShips;
var list = tab.elSpyShipsList;
Function PopulateShipsSendTab
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateShipsSendTab : function(panel) {
var ships = this.currentShips.available,
details = Dom.get(panel.isStarPanel ? "starDetailSendShips" : "planetDetailSendShips"),
detailsParent = details.parentNode,
li = document.createElement("li");
Function sendMessage
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sendMessage : function() {
var to = this.createTo.Selections();
if(to.length == 0) {
this.createResponse.innerHTML = "Must send a message To someone.";
}
Function renderChat
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderChat : function() {
// Only do this process once.
// NOTE: it's checked before but we're just making sure. (nice rhyming)
if (this.hasRenderedChat === true) {
Function AddResource
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AddResource : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradeAddItems");
if(quantity && c) {
Function PushAddResource
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PushAddResource : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradePushItems");
if(quantity && c) {
Function PushAddResource
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PushAddResource : function(e, matchedEl, container){
var quantity = matchedEl.previousSibling.value*1,
li = matchedEl.parentNode,
c = Dom.get("tradePushItems");
if(quantity && c) {