Showing 509 of 1,320 total issues
File security.js
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.Security == "undefined" || !YAHOO.lacuna.buildings.Security) {
(function(){
Function _createHabitableOrbits
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createHabitableOrbits : function () {
var range = 180,
tickSize = 30,
from = Sel.query(".speciesHO_from", this.container, true),
to = Sel.query(".speciesHO_to", this.container, true);
Function getSpeciesStatList
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getSpeciesStatList : function(stat) {
var frag = document.createDocumentFragment(),
li = document.createElement('li');
var nLi = li.cloneNode(false);
Function PopulateBHGTab
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PopulateBHGTab : function(target, actions) {
var details = Dom.get("bhgActionsAvail"),
detailsParent = details.parentNode,
li = document.createElement("li");
Function _buildFindPanel
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_buildFindPanel : _.once(function() {
var panelId = "starFind";
var panel = document.createElement("div");
panel.id = panelId;
Function _generateService
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateService: function(serviceName, method) {
if(this[method]){
throw new Error("WARNING: " + serviceName + " already exists for service. Unable to generate function");
}
Function _getBHGTab
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getBHGTab : function() {
var zoneOptions = "";
var zones = this.result.task_options.zones;
for (var i=0; i<zones.length; i++) {
zoneOptions += '<option value="' + zones[i] + '">' + zones[i] + '</option>';
Function Start
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Start : function(query) {
var l = window.location;
Game.RPCBase = window.lacuna_rpc_base_url || l.protocol + '//' + l.host + '/';
Game.domain = l.hostname || 'lacunaexpanse.com';
File wasteRecycling.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.WasteRecycling == "undefined" || !YAHOO.lacuna.buildings.WasteRecycling) {
(function(){
File wasteExchanger.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.WasteExchanger == "undefined" || !YAHOO.lacuna.buildings.WasteExchanger) {
(function(){
File distributionCenter.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.DistributionCenter == "undefined" || !YAHOO.lacuna.buildings.DistributionCenter) {
(function(){
Function render
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function() {
return (
<div className="ui grid">
<div className="centered row">
Function _populateList
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_populateList : function(sQuery, oResponse, oPayload) {
// Clear previous timeout
if(this._nTypeAheadDelayID != -1) {
clearTimeout(this._nTypeAheadDelayID);
}
Function Tick
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tick : function() {
var ED = Lacuna.Game.EmpireData;
var SD = Lacuna.Game.ServerData;
var dt = (new Date()).getTime();
var diff = dt - Lacuna.Game.recTime;
Function ViewPopulate
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ViewPopulate : function() {
var details = Dom.get("shipsViewDetails");
if(details) {
var ships = this.shipsView.ships,
File rightSidebar.jsx
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var Reflux = require('reflux');
Function SupplyChainShipsPopulate
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SupplyChainShipsPopulate : function() {
var ships = this.supply_chain_ships,
no_ships = Dom.get("supplyChainShipsNone"),
details = Dom.get("supplyChainShipsDetails"),
detailsParent = details.parentNode;
Function displayMessage
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
displayMessage : function(msg) {
if(msg) {
/* {
"id" : "id-goes-here",
"from" : "Dr. Stephen T. Colbert DFA",
File theDillonForge.js
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
YAHOO.namespace("lacuna.buildings");
if (typeof YAHOO.lacuna.buildings.TheDillonForge == "undefined" || !YAHOO.lacuna.buildings.TheDillonForge) {
(function(){
Function StashSubmit
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StashSubmit : function() {
var data = {
session_id: Game.GetSession(""),
building_id: this.building.id
},