Page MenuHomeWildfire Games

Move the controllability of an entity to a component.
Needs ReviewPublic

Authored by Freagarach on Jun 8 2019, 7:11 PM.

Details

Reviewers
wraitii
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Summary

This patch lets players be able to move any unit under their control around. Cf. this thread.
One can set "Controllable" to false for an entity in the new Controllability component to prevent this behaviour for that unit.

The check whether a unit can be controlled is moved higher up the command-chain, which seems more logical to me.
When the Control all units-cheat is on, an entity can still be controlled.

Also the check whether one can delete an entity is moved to this component.

Test Plan

Give oneself a non-domestic animal and watch how you can move it around.
Verify by playing games that normal behaviour is maintained.

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
wraitii added inline comments.Sep 4 2019, 10:20 AM
binaries/data/mods/public/simulation/components/UnitAI.js
27

Template structure and the actual variable state are de-correlated.

TBH I do like better the <controllable/> or <uncontrollable/> over the boolean, since it's much shorter. But to delete it one has to do <controllable disable=""/> which is a bit odd... So maybe we should go with boolean arguments all the time.

Freagarach updated this revision to Diff 9714.Sep 11 2019, 5:13 PM
Freagarach marked 6 inline comments as done.
  • recieve -> receive.
  • JSDOC.

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/133/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 537| 537| 			if (cmpGarrisonHolder)
| 538| 538| 			{
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541|    |-				    && player != +cmd.owner)
|    | 540|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 541|+				    player != +cmd.owner)
| 542| 542| 						continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540| 540| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541| 541| 				    && player != +cmd.owner)
| 542|    |-						continue;
|    | 542|+					continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 545| 545| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1266|1266| 		}
|1267|1267| 
|1268|1268| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1269|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1269|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1270|1270| 	}
|1271|1271| 
|1272|1272| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1330|1330| 
|1331|1331| 				if (i > 0)
|1332|1332| 				{
|1333|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1333|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1334|1334| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1335|1335| 					// TODO: ensure that cmpPreviousObstruction exists
|1336|1336| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1493|1493| 		// Check that all its members are selected
|1494|1494| 		var fid = formationIds[0];
|1495|1495| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1496|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1497|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1496|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1497|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1498|1498| 		{
|1499|1499| 			cmpFormation.DeleteTwinFormations();
|1500|1500| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1601|1601| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1602|1602| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1603|1603| 				if (matrix[i][j] < distSq)
|1604|    |-					closeClusters = [i,j];
|    |1604|+					closeClusters = [i, j];
|1605|1605| 
|1606|1606| 		// if no more close clusters found, just return all found clusters so far
|1607|1607| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1623|1623| 		}
|1624|1624| 		// remove the rows and columns in the matrix for the merged clusters,
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|    |-		clusters.splice(closeClusters[0],1);
|    |1626|+		clusters.splice(closeClusters[0], 1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1624|1624| 		// remove the rows and columns in the matrix for the merged clusters,
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|    |-		clusters.splice(closeClusters[1],1);
|    |1627|+		clusters.splice(closeClusters[1], 1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|    |-		matrix.splice(closeClusters[0],1);
|    |1628|+		matrix.splice(closeClusters[0], 1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|    |-		matrix.splice(closeClusters[1],1);
|    |1629|+		matrix.splice(closeClusters[1], 1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|1633|    |-				matrix[i].splice(closeClusters[0],1);
|    |1633|+				matrix[i].splice(closeClusters[0], 1);
|1634|1634| 			if (matrix[i].length > closeClusters[1])
|1635|1635| 				matrix[i].splice(closeClusters[1],1);
|1636|1636| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|1633|1633| 				matrix[i].splice(closeClusters[0],1);
|1634|1634| 			if (matrix[i].length > closeClusters[1])
|1635|    |-				matrix[i].splice(closeClusters[1],1);
|    |1635|+				matrix[i].splice(closeClusters[1], 1);
|1636|1636| 		}
|1637|1637| 		// add a new row of distances to the matrix and the new cluster
|1638|1638| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 789| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1289| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1290| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1520| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1599| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1616| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1630| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 541| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 729| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 963| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 976| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1123| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1375| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1458| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1497| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1523| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1556| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 797| 797| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 798| 798| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 799| 799| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 800|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 800|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 801| 801| 	}
| 802| 802| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 803| 803| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1630|1630| 			{
|1631|1631| 				minDist2 = dist2;
|1632|1632| 				minDistEntitySnapData = {
|1633|    |-						"x": pos.x,
|    |1633|+					"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1631|1631| 				minDist2 = dist2;
|1632|1632| 				minDistEntitySnapData = {
|1633|1633| 						"x": pos.x,
|1634|    |-						"z": pos.z,
|    |1634|+					"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|1637|1637| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1632|1632| 				minDistEntitySnapData = {
|1633|1633| 						"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|    |-						"angle": cmpPosition.GetRotation().y,
|    |1635|+					"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|1637|1637| 				};
|1638|1638| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1633|1633| 						"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|    |-						"ent": ent
|    |1636|+					"ent": ent
|1637|1637| 				};
|1638|1638| 			}
|1639|1639| 		}
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 758| 758| 					this.FinishOrder();
| 759| 759| 					return;
| 760| 760| 				}
| 761|    |-				else
| 762|    |-				{
|    | 761|+				
| 763| 762| 					this.SetNextState("GARRISON.APPROACHING");
| 764| 763| 					return;
| 765|    |-				}
|    | 764|+				
| 766| 765| 			}
| 767| 766| 
| 768| 767| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1026|1026| 			},
|1027|1027| 		},
|1028|1028| 
|1029|    |-		"GARRISON":{
|    |1029|+		"GARRISON": {
|1030|1030| 			"enter": function() {
|1031|1031| 				// If the garrisonholder should pickup, warn it so it can take needed action
|1032|1032| 				var cmpGarrisonHolder = Engine.QueryInterface(this.order.data.target, IID_GarrisonHolder);
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1975|1975| 
|1976|1976| 				"Attacked": function(msg) {
|1977|1977| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|1978|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|1979|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |1978|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |1979|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|1980|1980| 						this.RespondToTargetedEntities([msg.data.attacker]);
|1981|1981| 				},
|1982|1982| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2703|2703| 					{
|2704|2704| 						// The building was already finished/fully repaired before we arrived;
|2705|2705| 						// let the ConstructionFinished handler handle this.
|2706|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2706|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2707|2707| 						return true;
|2708|2708| 					}
|2709|2709| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2703|2703| 					{
|2704|2704| 						// The building was already finished/fully repaired before we arrived;
|2705|2705| 						// let the ConstructionFinished handler handle this.
|2706|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2706|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2707|2707| 						return true;
|2708|2708| 					}
|2709|2709| 
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3216|3216| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3217|3217| 
|3218|3218| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3219|    |-							// only used for domestic animals
|    |3219|+		// only used for domestic animals
|3220|3220| 	},
|3221|3221| };
|3222|3222| 
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3274|3274| 
|3275|3275| UnitAI.prototype.IsAnimal = function()
|3276|3276| {
|3277|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3277|+	return (!!this.template.NaturalBehaviour);
|3278|3278| };
|3279|3279| 
|3280|3280| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3404|3404| 		{
|3405|3405| 			let index = this.GetCurrentState().indexOf(".");
|3406|3406| 			if (index != -1)
|3407|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3407|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3408|3408| 			this.Stop(false);
|3409|3409| 		}
|3410|3410| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3460|3460| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3461|3461| 			continue;
|3462|3462| 		if (i == 0)
|3463|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3463|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3464|3464| 		else
|3465|3465| 			this.orderQueue.splice(i, 1);
|3466|3466| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3460|3460| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3461|3461| 			continue;
|3462|3462| 		if (i == 0)
|3463|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3463|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3464|3464| 		else
|3465|3465| 			this.orderQueue.splice(i, 1);
|3466|3466| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3544|3544| };
|3545|3545| 
|3546|3546| 
|3547|    |-//// FSM linkage functions ////
|    |3547|+// // FSM linkage functions ////
|3548|3548| 
|3549|3549| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3550|3550| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3714|3714| 				continue;
|3715|3715| 			if (this.orderQueue[i].type == type)
|3716|3716| 				continue;
|3717|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3717|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3718|3718| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3719|3719| 			return;
|3720|3720| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3714|3714| 				continue;
|3715|3715| 			if (this.orderQueue[i].type == type)
|3716|3716| 				continue;
|3717|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3717|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3718|3718| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3719|3719| 			return;
|3720|3720| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3885|3885| 	if (data.timerRepeat === undefined)
|3886|3886| 		this.timer = undefined;
|3887|3887| 
|3888|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3888|+	this.UnitFsm.ProcessMessage(this, { "type": "Timer", "data": data, "lateness": lateness});
|3889|3889| };
|3890|3890| 
|3891|3891| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3885|3885| 	if (data.timerRepeat === undefined)
|3886|3886| 		this.timer = undefined;
|3887|3887| 
|3888|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3888|+	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness });
|3889|3889| };
|3890|3890| 
|3891|3891| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3930|3930| 	// TODO: This is a bit inefficient since every unit listens to every
|3931|3931| 	// construction message - ideally we could scope it to only the one we're building
|3932|3932| 
|3933|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3933|+	this.UnitFsm.ProcessMessage(this, { "type": "ConstructionFinished", "data": msg});
|3934|3934| };
|3935|3935| 
|3936|3936| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3930|3930| 	// TODO: This is a bit inefficient since every unit listens to every
|3931|3931| 	// construction message - ideally we could scope it to only the one we're building
|3932|3932| 
|3933|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3933|+	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg });
|3934|3934| };
|3935|3935| 
|3936|3936| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3955|3955| 
|3956|3956| UnitAI.prototype.OnAttacked = function(msg)
|3957|3957| {
|3958|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3958|+	this.UnitFsm.ProcessMessage(this, { "type": "Attacked", "data": msg});
|3959|3959| };
|3960|3960| 
|3961|3961| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3955|3955| 
|3956|3956| UnitAI.prototype.OnAttacked = function(msg)
|3957|3957| {
|3958|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3958|+	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg });
|3959|3959| };
|3960|3960| 
|3961|3961| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3960|3960| 
|3961|3961| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3962|3962| {
|3963|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3963|+	this.UnitFsm.ProcessMessage(this, { "type": "GuardedAttacked", "data": msg.data});
|3964|3964| };
|3965|3965| 
|3966|3966| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3960|3960| 
|3961|3961| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3962|3962| {
|3963|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3963|+	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data });
|3964|3964| };
|3965|3965| 
|3966|3966| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3965|3965| 
|3966|3966| UnitAI.prototype.OnHealthChanged = function(msg)
|3967|3967| {
|3968|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3968|+	this.UnitFsm.ProcessMessage(this, { "type": "HealthChanged", "from": msg.from, "to": msg.to});
|3969|3969| };
|3970|3970| 
|3971|3971| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3965|3965| 
|3966|3966| UnitAI.prototype.OnHealthChanged = function(msg)
|3967|3967| {
|3968|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3968|+	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to });
|3969|3969| };
|3970|3970| 
|3971|3971| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3971|3971| UnitAI.prototype.OnRangeUpdate = function(msg)
|3972|3972| {
|3973|3973| 	if (msg.tag == this.losRangeQuery)
|3974|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3974|+		this.UnitFsm.ProcessMessage(this, { "type": "LosRangeUpdate", "data": msg});
|3975|3975| 	else if (msg.tag == this.losHealRangeQuery)
|3976|3976| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3977|3977| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3971|3971| UnitAI.prototype.OnRangeUpdate = function(msg)
|3972|3972| {
|3973|3973| 	if (msg.tag == this.losRangeQuery)
|3974|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3974|+		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg });
|3975|3975| 	else if (msg.tag == this.losHealRangeQuery)
|3976|3976| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3977|3977| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3973|3973| 	if (msg.tag == this.losRangeQuery)
|3974|3974| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3975|3975| 	else if (msg.tag == this.losHealRangeQuery)
|3976|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3976|+		this.UnitFsm.ProcessMessage(this, { "type": "LosHealRangeUpdate", "data": msg});
|3977|3977| };
|3978|3978| 
|3979|3979| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3973|3973| 	if (msg.tag == this.losRangeQuery)
|3974|3974| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3975|3975| 	else if (msg.tag == this.losHealRangeQuery)
|3976|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3976|+		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg });
|3977|3977| };
|3978|3978| 
|3979|3979| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3978|3978| 
|3979|3979| UnitAI.prototype.OnPackFinished = function(msg)
|3980|3980| {
|3981|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3981|+	this.UnitFsm.ProcessMessage(this, { "type": "PackFinished", "packed": msg.packed});
|3982|3982| };
|3983|3983| 
|3984|3984| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3978|3978| 
|3979|3979| UnitAI.prototype.OnPackFinished = function(msg)
|3980|3980| {
|3981|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3981|+	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed });
|3982|3982| };
|3983|3983| 
|3984|3984| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3981|3981| 	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|3982|3982| };
|3983|3983| 
|3984|    |-//// Helper functions to be called by the FSM ////
|    |3984|+// // Helper functions to be called by the FSM ////
|3985|3985| 
|3986|3986| UnitAI.prototype.GetWalkSpeed = function()
|3987|3987| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4650|4650| UnitAI.prototype.AttackEntityInZone = function(ents)
|4651|4651| {
|4652|4652| 	var target = ents.find(target =>
|4653|    |-		this.CanAttack(target)
|4654|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|    |4653|+		this.CanAttack(target) &&
|    |4654|+		this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4655|4655| 		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4656|4656| 	);
|4657|4657| 	if (!target)
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4651|4651| {
|4652|4652| 	var target = ents.find(target =>
|4653|4653| 		this.CanAttack(target)
|4654|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4655|    |-		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|    |4654|+		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|    |4655|+		(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4656|4656| 	);
|4657|4657| 	if (!target)
|4658|4658| 		return false;
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4715|4715| 	// If we are guarding/escorting, don't abandon as long as the guarded unit is in target range of the attacker
|4716|4716| 	if (this.isGuardOf)
|4717|4717| 	{
|4718|    |-		var cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4718|+		var cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4719|4719| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4720|4720| 		if (cmpUnitAI && cmpAttack &&
|4721|4721| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4719|4719| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4720|4720| 		if (cmpUnitAI && cmpAttack &&
|4721|4721| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|4722|    |-				return false;
|    |4722|+			return false;
|4723|4723| 	}
|4724|4724| 
|4725|4725| 	// Stop if we're in hold-ground mode and it's too far from the holding point
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4757|4757| 	// If we are guarding/escorting, chase at least as long as the guarded unit is in target range of the attacker
|4758|4758| 	if (this.isGuardOf)
|4759|4759| 	{
|4760|    |-		let cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4760|+		let cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4761|4761| 		let cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4762|4762| 		if (cmpUnitAI && cmpAttack &&
|4763|4763| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4770|4770| 	return false;
|4771|4771| };
|4772|4772| 
|4773|    |-//// External interface functions ////
|    |4773|+// // External interface functions ////
|4774|4774| 
|4775|4775| UnitAI.prototype.SetFormationController = function(ent)
|4776|4776| {
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4926|4926| 	{
|4927|4927| 		if (this.isGuardOf == target && this.order && this.order.type == "Guard")
|4928|4928| 			return;
|4929|    |-		else
|4930|    |-			this.RemoveGuard();
|    |4929|+		this.RemoveGuard();
|4931|4930| 	}
|4932|4931| 
|4933|4932| 	this.AddOrder("Guard", { "target": target, "force": false }, queued);
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5258|5258| 	    this.workOrders.length && this.workOrders[0].type == "Trade")
|5259|5259| 	{
|5260|5260| 		let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|5261|    |-		if (cmpTrader.HasBothMarkets() && 
|    |5261|+		if (cmpTrader.HasBothMarkets() &&
|5262|5262| 		   (cmpTrader.GetFirstMarket() == target && cmpTrader.GetSecondMarket() == source ||
|5263|5263| 		    cmpTrader.GetFirstMarket() == source && cmpTrader.GetSecondMarket() == target))
|5264|5264| 		{
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5539|5539| 				{
|5540|5540| 					var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5541|5541| 					var targetClasses = this.order.data.targetClasses;
|5542|    |-					if (targetClasses.attack && cmpIdentity
|5543|    |-						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5542|+					if (targetClasses.attack && cmpIdentity &&
|    |5543|+						!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5544|5544| 						continue;
|5545|5545| 					if (targetClasses.avoid && cmpIdentity
|5546|5546| 						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5542|5542| 					if (targetClasses.attack && cmpIdentity
|5543|5543| 						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5544|5544| 						continue;
|5545|    |-					if (targetClasses.avoid && cmpIdentity
|5546|    |-						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5545|+					if (targetClasses.avoid && cmpIdentity &&
|    |5546|+						MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5547|5547| 						continue;
|5548|5548| 					// Only used by the AIs to prevent some choices of targets
|5549|5549| 					if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5565|5565| 		{
|5566|5566| 			var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5567|5567| 			var targetClasses = this.order.data.targetClasses;
|5568|    |-			if (cmpIdentity && targetClasses.attack
|5569|    |-				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5568|+			if (cmpIdentity && targetClasses.attack &&
|    |5569|+				!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5570|5570| 				continue;
|5571|5571| 			if (cmpIdentity && targetClasses.avoid
|5572|5572| 				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5568|5568| 			if (cmpIdentity && targetClasses.attack
|5569|5569| 				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5570|5570| 				continue;
|5571|    |-			if (cmpIdentity && targetClasses.avoid
|5572|    |-				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5571|+			if (cmpIdentity && targetClasses.avoid &&
|    |5572|+				MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5573|5573| 				continue;
|5574|5574| 			// Only used by the AIs to prevent some choices of targets
|5575|5575| 			if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5725|5725| 
|5726|5726| UnitAI.prototype.SetHeldPosition = function(x, z)
|5727|5727| {
|5728|    |-	this.heldPosition = {"x": x, "z": z};
|    |5728|+	this.heldPosition = { "x": x, "z": z};
|5729|5729| };
|5730|5730| 
|5731|5731| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5725|5725| 
|5726|5726| UnitAI.prototype.SetHeldPosition = function(x, z)
|5727|5727| {
|5728|    |-	this.heldPosition = {"x": x, "z": z};
|    |5728|+	this.heldPosition = {"x": x, "z": z };
|5729|5729| };
|5730|5730| 
|5731|5731| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5752|5752| 	return false;
|5753|5753| };
|5754|5754| 
|5755|    |-//// Helper functions ////
|    |5755|+// // Helper functions ////
|5756|5756| 
|5757|5757| UnitAI.prototype.CanAttack = function(target)
|5758|5758| {
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5956|5956| 	return cmpPack && cmpPack.IsPacking();
|5957|5957| };
|5958|5958| 
|5959|    |-//// Formation specific functions ////
|    |5959|+// // Formation specific functions ////
|5960|5960| 
|5961|5961| UnitAI.prototype.IsAttackingAsFormation = function()
|5962|5962| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5961|5961| UnitAI.prototype.IsAttackingAsFormation = function()
|5962|5962| {
|5963|5963| 	var cmpAttack = Engine.QueryInterface(this.entity, IID_Attack);
|5964|    |-	return cmpAttack && cmpAttack.CanAttackAsFormation()
|5965|    |-		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    |5964|+	return cmpAttack && cmpAttack.CanAttackAsFormation() &&
|    |5965|+		this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5966|5966| };
|5967|5967| 
|5968|5968| //// Animal specific functions ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5965|5965| 		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5966|5966| };
|5967|5967| 
|5968|    |-//// Animal specific functions ////
|    |5968|+// // Animal specific functions ////
|5969|5969| 
|5970|5970| UnitAI.prototype.MoveRandomly = function(distance)
|5971|5971| {

binaries/data/mods/public/simulation/components/UnitAI.js
| 327| »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'Order.WalkToTarget' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
| 913| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 938| »   »   »   "enter":·function(msg)·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 988| »   »   »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'enter' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
|1051| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1087| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1119| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1279| »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1336| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1511| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1533| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1565| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1719| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1769| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1847| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2024| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2140| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2415| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2448| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2554| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2620| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2659| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2870| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3051| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3790| »   var·isWorkType·=·type·=>·type·==·"Gather"·||·type·==·"Trade"·||·type·==·"Repair"·||·type·==·"ReturnResource";
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4637| »   var·target·=·ents.find(target·=>·this.CanAttack(target));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4652| »   var·target·=·ents.find(target·=>
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4698| »   var·ent·=·ents.find(ent·=>·this.CanHeal(ent));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4721| »   »   ····cmpAttack.GetAttackTypes().some(type·=>·cmpUnitAI.CheckTargetAttackRange(this.isGuardOf,·type)))
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|1979| »   »   »   »   »   »   &&·this.order.data.target·!=·msg.data.attacker·&&·this.GetBestAttackAgainst(msg.data.attacker,·true)·!=·"Capture")
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|3752| »   »   var·order·=·{·"type":·type,·"data":·data·};
|    | [NORMAL] JSHintBear:
|    | 'order' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|3821| »   for·(var·i·=·0;·i·<·this.orderQueue.length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|4654| »   »   &&·this.CheckTargetDistanceFromHeldPosition(target,·IID_Attack,·this.GetBestAttackAgainst(target,·true))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|4655| »   »   &&·(this.GetStance().respondChaseBeyondVision·||·this.CheckTargetIsInVisionRange(target))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5543| »   »   »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5546| »   »   »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5559| »   var·targets·=·this.GetTargetsFromUnit();
|    | [NORMAL] JSHintBear:
|    | 'targets' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5560| »   for·(var·targ·of·targets)
|    | [NORMAL] JSHintBear:
|    | 'targ' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5566| »   »   »   var·cmpIdentity·=·Engine.QueryInterface(targ,·IID_Identity);
|    | [NORMAL] JSHintBear:
|    | 'cmpIdentity' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5567| »   »   »   var·targetClasses·=·this.order.data.targetClasses;
|    | [NORMAL] JSHintBear:
|    | 'targetClasses' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5569| »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5572| »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5647| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5650| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5655| »   »   var·cmpRanged·=·Engine.QueryInterface(this.entity,·iid);
|    | [NORMAL] JSHintBear:
|    | 'cmpRanged' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5658| »   »   var·range·=·iid·!==·IID_Attack·?·cmpRanged.GetRange()·:·cmpRanged.GetFullAttackRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5659| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5669| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5672| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5965| »   »   &&·this.GetCurrentState()·==·"FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/642/display/redirect

Stan added inline comments.Sep 11 2019, 5:54 PM
binaries/data/mods/public/simulation/components/UnitAI.js
256

move maybe ? else walk everywhere (No biggie)

binaries/data/mods/public/simulation/helpers/Commands.js
1680

Missing parenthesis ? (operator precedence)

Freagarach updated this revision to Diff 9734.Sep 13 2019, 9:16 AM
Freagarach marked 2 inline comments as done.
Freagarach edited the summary of this revision. (Show Details)
Freagarach edited the test plan for this revision. (Show Details)
  • Operator precedence.
  • Turrets can't move -> Turrets can't walk.

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/148/display/redirect

wraitii added inline comments.Sep 13 2019, 9:25 AM
binaries/data/mods/public/simulation/components/UnitAI.js
204

Even more accurately 'turrets can't be ordered to walk'

Freagarach updated this revision to Diff 9735.Sep 13 2019, 9:28 AM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/149/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 797| 797| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 798| 798| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 799| 799| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 800|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 800|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 801| 801| 	}
| 802| 802| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 803| 803| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1630|1630| 			{
|1631|1631| 				minDist2 = dist2;
|1632|1632| 				minDistEntitySnapData = {
|1633|    |-						"x": pos.x,
|    |1633|+					"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1631|1631| 				minDist2 = dist2;
|1632|1632| 				minDistEntitySnapData = {
|1633|1633| 						"x": pos.x,
|1634|    |-						"z": pos.z,
|    |1634|+					"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|1637|1637| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1632|1632| 				minDistEntitySnapData = {
|1633|1633| 						"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|    |-						"angle": cmpPosition.GetRotation().y,
|    |1635|+					"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|1637|1637| 				};
|1638|1638| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1633|1633| 						"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|    |-						"ent": ent
|    |1636|+					"ent": ent
|1637|1637| 				};
|1638|1638| 			}
|1639|1639| 		}
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 537| 537| 			if (cmpGarrisonHolder)
| 538| 538| 			{
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541|    |-				    && player != +cmd.owner)
|    | 540|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 541|+				    player != +cmd.owner)
| 542| 542| 						continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540| 540| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541| 541| 				    && player != +cmd.owner)
| 542|    |-						continue;
|    | 542|+					continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 545| 545| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1266|1266| 		}
|1267|1267| 
|1268|1268| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1269|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1269|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1270|1270| 	}
|1271|1271| 
|1272|1272| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1330|1330| 
|1331|1331| 				if (i > 0)
|1332|1332| 				{
|1333|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1333|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1334|1334| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1335|1335| 					// TODO: ensure that cmpPreviousObstruction exists
|1336|1336| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1493|1493| 		// Check that all its members are selected
|1494|1494| 		var fid = formationIds[0];
|1495|1495| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1496|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1497|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1496|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1497|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1498|1498| 		{
|1499|1499| 			cmpFormation.DeleteTwinFormations();
|1500|1500| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1601|1601| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1602|1602| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1603|1603| 				if (matrix[i][j] < distSq)
|1604|    |-					closeClusters = [i,j];
|    |1604|+					closeClusters = [i, j];
|1605|1605| 
|1606|1606| 		// if no more close clusters found, just return all found clusters so far
|1607|1607| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1623|1623| 		}
|1624|1624| 		// remove the rows and columns in the matrix for the merged clusters,
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|    |-		clusters.splice(closeClusters[0],1);
|    |1626|+		clusters.splice(closeClusters[0], 1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1624|1624| 		// remove the rows and columns in the matrix for the merged clusters,
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|    |-		clusters.splice(closeClusters[1],1);
|    |1627|+		clusters.splice(closeClusters[1], 1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|    |-		matrix.splice(closeClusters[0],1);
|    |1628|+		matrix.splice(closeClusters[0], 1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|    |-		matrix.splice(closeClusters[1],1);
|    |1629|+		matrix.splice(closeClusters[1], 1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|1633|    |-				matrix[i].splice(closeClusters[0],1);
|    |1633|+				matrix[i].splice(closeClusters[0], 1);
|1634|1634| 			if (matrix[i].length > closeClusters[1])
|1635|1635| 				matrix[i].splice(closeClusters[1],1);
|1636|1636| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|1633|1633| 				matrix[i].splice(closeClusters[0],1);
|1634|1634| 			if (matrix[i].length > closeClusters[1])
|1635|    |-				matrix[i].splice(closeClusters[1],1);
|    |1635|+				matrix[i].splice(closeClusters[1], 1);
|1636|1636| 		}
|1637|1637| 		// add a new row of distances to the matrix and the new cluster
|1638|1638| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 789| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1289| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1290| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1520| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1599| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1616| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1630| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 541| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 729| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 963| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 976| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1123| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1375| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1458| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1497| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1523| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1556| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 759| 759| 					this.FinishOrder();
| 760| 760| 					return;
| 761| 761| 				}
| 762|    |-				else
| 763|    |-				{
|    | 762|+				
| 764| 763| 					this.SetNextState("GARRISON.APPROACHING");
| 765| 764| 					return;
| 766|    |-				}
|    | 765|+				
| 767| 766| 			}
| 768| 767| 
| 769| 768| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1027|1027| 			},
|1028|1028| 		},
|1029|1029| 
|1030|    |-		"GARRISON":{
|    |1030|+		"GARRISON": {
|1031|1031| 			"enter": function() {
|1032|1032| 				// If the garrisonholder should pickup, warn it so it can take needed action
|1033|1033| 				var cmpGarrisonHolder = Engine.QueryInterface(this.order.data.target, IID_GarrisonHolder);
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1976|1976| 
|1977|1977| 				"Attacked": function(msg) {
|1978|1978| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|1979|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|1980|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |1979|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |1980|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|1981|1981| 						this.RespondToTargetedEntities([msg.data.attacker]);
|1982|1982| 				},
|1983|1983| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3217|3217| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3218|3218| 
|3219|3219| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3220|    |-							// only used for domestic animals
|    |3220|+		// only used for domestic animals
|3221|3221| 	},
|3222|3222| };
|3223|3223| 
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3275|3275| 
|3276|3276| UnitAI.prototype.IsAnimal = function()
|3277|3277| {
|3278|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3278|+	return (!!this.template.NaturalBehaviour);
|3279|3279| };
|3280|3280| 
|3281|3281| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3405|3405| 		{
|3406|3406| 			let index = this.GetCurrentState().indexOf(".");
|3407|3407| 			if (index != -1)
|3408|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3408|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3409|3409| 			this.Stop(false);
|3410|3410| 		}
|3411|3411| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3545|3545| };
|3546|3546| 
|3547|3547| 
|3548|    |-//// FSM linkage functions ////
|    |3548|+// // FSM linkage functions ////
|3549|3549| 
|3550|3550| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3551|3551| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, { "type": "Timer", "data": data, "lateness": lateness});
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness });
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, { "type": "ConstructionFinished", "data": msg});
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg });
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, { "type": "Attacked", "data": msg});
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg });
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, { "type": "GuardedAttacked", "data": msg.data});
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data });
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, { "type": "HealthChanged", "from": msg.from, "to": msg.to});
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to });
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, { "type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg });
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, { "type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg });
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, { "type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed });
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3982|3982| 	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|    |-//// Helper functions to be called by the FSM ////
|    |3985|+// // Helper functions to be called by the FSM ////
|3986|3986| 
|3987|3987| UnitAI.prototype.GetWalkSpeed = function()
|3988|3988| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4651|4651| UnitAI.prototype.AttackEntityInZone = function(ents)
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|    |-		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|    |4654|+		this.CanAttack(target) &&
|    |4655|+		this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|4656| 		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|4654| 		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|    |-		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|    |4655|+		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|    |4656|+		(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|4659|4659| 		return false;
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4716|4716| 	// If we are guarding/escorting, don't abandon as long as the guarded unit is in target range of the attacker
|4717|4717| 	if (this.isGuardOf)
|4718|4718| 	{
|4719|    |-		var cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4719|+		var cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|4723|    |-				return false;
|    |4723|+			return false;
|4724|4724| 	}
|4725|4725| 
|4726|4726| 	// Stop if we're in hold-ground mode and it's too far from the holding point
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4758|4758| 	// If we are guarding/escorting, chase at least as long as the guarded unit is in target range of the attacker
|4759|4759| 	if (this.isGuardOf)
|4760|4760| 	{
|4761|    |-		let cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4761|+		let cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4762|4762| 		let cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4763|4763| 		if (cmpUnitAI && cmpAttack &&
|4764|4764| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4771|4771| 	return false;
|4772|4772| };
|4773|4773| 
|4774|    |-//// External interface functions ////
|    |4774|+// // External interface functions ////
|4775|4775| 
|4776|4776| UnitAI.prototype.SetFormationController = function(ent)
|4777|4777| {
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4927|4927| 	{
|4928|4928| 		if (this.isGuardOf == target && this.order && this.order.type == "Guard")
|4929|4929| 			return;
|4930|    |-		else
|4931|    |-			this.RemoveGuard();
|    |4930|+		this.RemoveGuard();
|4932|4931| 	}
|4933|4932| 
|4934|4933| 	this.AddOrder("Guard", { "target": target, "force": false }, queued);
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5259|5259| 	    this.workOrders.length && this.workOrders[0].type == "Trade")
|5260|5260| 	{
|5261|5261| 		let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|5262|    |-		if (cmpTrader.HasBothMarkets() && 
|    |5262|+		if (cmpTrader.HasBothMarkets() &&
|5263|5263| 		   (cmpTrader.GetFirstMarket() == target && cmpTrader.GetSecondMarket() == source ||
|5264|5264| 		    cmpTrader.GetFirstMarket() == source && cmpTrader.GetSecondMarket() == target))
|5265|5265| 		{
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5540|5540| 				{
|5541|5541| 					var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5542|5542| 					var targetClasses = this.order.data.targetClasses;
|5543|    |-					if (targetClasses.attack && cmpIdentity
|5544|    |-						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5543|+					if (targetClasses.attack && cmpIdentity &&
|    |5544|+						!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|5546| 					if (targetClasses.avoid && cmpIdentity
|5547|5547| 						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5543|5543| 					if (targetClasses.attack && cmpIdentity
|5544|5544| 						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|    |-					if (targetClasses.avoid && cmpIdentity
|5547|    |-						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5546|+					if (targetClasses.avoid && cmpIdentity &&
|    |5547|+						MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5548|5548| 						continue;
|5549|5549| 					// Only used by the AIs to prevent some choices of targets
|5550|5550| 					if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5566|5566| 		{
|5567|5567| 			var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5568|5568| 			var targetClasses = this.order.data.targetClasses;
|5569|    |-			if (cmpIdentity && targetClasses.attack
|5570|    |-				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5569|+			if (cmpIdentity && targetClasses.attack &&
|    |5570|+				!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|5572| 			if (cmpIdentity && targetClasses.avoid
|5573|5573| 				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5569|5569| 			if (cmpIdentity && targetClasses.attack
|5570|5570| 				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|    |-			if (cmpIdentity && targetClasses.avoid
|5573|    |-				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5572|+			if (cmpIdentity && targetClasses.avoid &&
|    |5573|+				MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5574|5574| 				continue;
|5575|5575| 			// Only used by the AIs to prevent some choices of targets
|5576|5576| 			if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = { "x": x, "z": z};
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = {"x": x, "z": z };
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5753|5753| 	return false;
|5754|5754| };
|5755|5755| 
|5756|    |-//// Helper functions ////
|    |5756|+// // Helper functions ////
|5757|5757| 
|5758|5758| UnitAI.prototype.CanAttack = function(target)
|5759|5759| {
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5957|5957| 	return cmpPack && cmpPack.IsPacking();
|5958|5958| };
|5959|5959| 
|5960|    |-//// Formation specific functions ////
|    |5960|+// // Formation specific functions ////
|5961|5961| 
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|5964|5964| 	var cmpAttack = Engine.QueryInterface(this.entity, IID_Attack);
|5965|    |-	return cmpAttack && cmpAttack.CanAttackAsFormation()
|5966|    |-		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    |5965|+	return cmpAttack && cmpAttack.CanAttackAsFormation() &&
|    |5966|+		this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|5969| //// Animal specific functions ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5966|5966| 		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|    |-//// Animal specific functions ////
|    |5969|+// // Animal specific functions ////
|5970|5970| 
|5971|5971| UnitAI.prototype.MoveRandomly = function(distance)
|5972|5972| {

binaries/data/mods/public/simulation/components/UnitAI.js
| 327| »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'Order.WalkToTarget' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
| 914| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 939| »   »   »   "enter":·function(msg)·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 989| »   »   »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'enter' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
|1052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1088| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1120| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1280| »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1337| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1512| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1534| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1566| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1720| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1770| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1848| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2025| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2141| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2416| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2449| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2555| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2621| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2660| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2871| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3791| »   var·isWorkType·=·type·=>·type·==·"Gather"·||·type·==·"Trade"·||·type·==·"Repair"·||·type·==·"ReturnResource";
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4638| »   var·target·=·ents.find(target·=>·this.CanAttack(target));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4653| »   var·target·=·ents.find(target·=>
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4699| »   var·ent·=·ents.find(ent·=>·this.CanHeal(ent));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4722| »   »   ····cmpAttack.GetAttackTypes().some(type·=>·cmpUnitAI.CheckTargetAttackRange(this.isGuardOf,·type)))
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|1980| »   »   »   »   »   »   &&·this.order.data.target·!=·msg.data.attacker·&&·this.GetBestAttackAgainst(msg.data.attacker,·true)·!=·"Capture")
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|3753| »   »   var·order·=·{·"type":·type,·"data":·data·};
|    | [NORMAL] JSHintBear:
|    | 'order' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|3822| »   for·(var·i·=·0;·i·<·this.orderQueue.length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|4655| »   »   &&·this.CheckTargetDistanceFromHeldPosition(target,·IID_Attack,·this.GetBestAttackAgainst(target,·true))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|4656| »   »   &&·(this.GetStance().respondChaseBeyondVision·||·this.CheckTargetIsInVisionRange(target))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5544| »   »   »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5547| »   »   »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5560| »   var·targets·=·this.GetTargetsFromUnit();
|    | [NORMAL] JSHintBear:
|    | 'targets' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5561| »   for·(var·targ·of·targets)
|    | [NORMAL] JSHintBear:
|    | 'targ' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5567| »   »   »   var·cmpIdentity·=·Engine.QueryInterface(targ,·IID_Identity);
|    | [NORMAL] JSHintBear:
|    | 'cmpIdentity' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5568| »   »   »   var·targetClasses·=·this.order.data.targetClasses;
|    | [NORMAL] JSHintBear:
|    | 'targetClasses' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5570| »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5573| »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5648| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5651| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5656| »   »   var·cmpRanged·=·Engine.QueryInterface(this.entity,·iid);
|    | [NORMAL] JSHintBear:
|    | 'cmpRanged' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5659| »   »   var·range·=·iid·!==·IID_Attack·?·cmpRanged.GetRange()·:·cmpRanged.GetFullAttackRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5660| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5670| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5673| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5966| »   »   &&·this.GetCurrentState()·==·"FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/658/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 797| 797| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 798| 798| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 799| 799| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 800|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 800|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 801| 801| 	}
| 802| 802| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 803| 803| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1630|1630| 			{
|1631|1631| 				minDist2 = dist2;
|1632|1632| 				minDistEntitySnapData = {
|1633|    |-						"x": pos.x,
|    |1633|+					"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1631|1631| 				minDist2 = dist2;
|1632|1632| 				minDistEntitySnapData = {
|1633|1633| 						"x": pos.x,
|1634|    |-						"z": pos.z,
|    |1634|+					"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|1637|1637| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1632|1632| 				minDistEntitySnapData = {
|1633|1633| 						"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|    |-						"angle": cmpPosition.GetRotation().y,
|    |1635|+					"angle": cmpPosition.GetRotation().y,
|1636|1636| 						"ent": ent
|1637|1637| 				};
|1638|1638| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1633|1633| 						"x": pos.x,
|1634|1634| 						"z": pos.z,
|1635|1635| 						"angle": cmpPosition.GetRotation().y,
|1636|    |-						"ent": ent
|    |1636|+					"ent": ent
|1637|1637| 				};
|1638|1638| 			}
|1639|1639| 		}
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 537| 537| 			if (cmpGarrisonHolder)
| 538| 538| 			{
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541|    |-				    && player != +cmd.owner)
|    | 540|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 541|+				    player != +cmd.owner)
| 542| 542| 						continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540| 540| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541| 541| 				    && player != +cmd.owner)
| 542|    |-						continue;
|    | 542|+					continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 545| 545| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1158|1158| 
|1159|1159| 	// send Metadata info if any
|1160|1160| 	if (cmd.metadata)
|1161|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1161|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1162|1162| 
|1163|1163| 	// Tell the units to start building this new entity
|1164|1164| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1266|1266| 		}
|1267|1267| 
|1268|1268| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1269|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1269|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1270|1270| 	}
|1271|1271| 
|1272|1272| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1330|1330| 
|1331|1331| 				if (i > 0)
|1332|1332| 				{
|1333|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1333|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1334|1334| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1335|1335| 					// TODO: ensure that cmpPreviousObstruction exists
|1336|1336| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1493|1493| 		// Check that all its members are selected
|1494|1494| 		var fid = formationIds[0];
|1495|1495| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1496|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1497|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1496|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1497|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1498|1498| 		{
|1499|1499| 			cmpFormation.DeleteTwinFormations();
|1500|1500| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1601|1601| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1602|1602| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1603|1603| 				if (matrix[i][j] < distSq)
|1604|    |-					closeClusters = [i,j];
|    |1604|+					closeClusters = [i, j];
|1605|1605| 
|1606|1606| 		// if no more close clusters found, just return all found clusters so far
|1607|1607| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1623|1623| 		}
|1624|1624| 		// remove the rows and columns in the matrix for the merged clusters,
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|    |-		clusters.splice(closeClusters[0],1);
|    |1626|+		clusters.splice(closeClusters[0], 1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1624|1624| 		// remove the rows and columns in the matrix for the merged clusters,
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|    |-		clusters.splice(closeClusters[1],1);
|    |1627|+		clusters.splice(closeClusters[1], 1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1625|1625| 		// and the clusters themselves from the cluster list
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|    |-		matrix.splice(closeClusters[0],1);
|    |1628|+		matrix.splice(closeClusters[0], 1);
|1629|1629| 		matrix.splice(closeClusters[1],1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1626|1626| 		clusters.splice(closeClusters[0],1);
|1627|1627| 		clusters.splice(closeClusters[1],1);
|1628|1628| 		matrix.splice(closeClusters[0],1);
|1629|    |-		matrix.splice(closeClusters[1],1);
|    |1629|+		matrix.splice(closeClusters[1], 1);
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1630|1630| 		for (let i = 0; i < matrix.length; ++i)
|1631|1631| 		{
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|1633|    |-				matrix[i].splice(closeClusters[0],1);
|    |1633|+				matrix[i].splice(closeClusters[0], 1);
|1634|1634| 			if (matrix[i].length > closeClusters[1])
|1635|1635| 				matrix[i].splice(closeClusters[1],1);
|1636|1636| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1632|1632| 			if (matrix[i].length > closeClusters[0])
|1633|1633| 				matrix[i].splice(closeClusters[0],1);
|1634|1634| 			if (matrix[i].length > closeClusters[1])
|1635|    |-				matrix[i].splice(closeClusters[1],1);
|    |1635|+				matrix[i].splice(closeClusters[1], 1);
|1636|1636| 		}
|1637|1637| 		// add a new row of distances to the matrix and the new cluster
|1638|1638| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 789| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1289| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1290| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1520| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1599| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1616| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1630| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 541| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 729| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 963| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 976| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1123| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1375| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1458| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1497| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1523| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1556| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 759| 759| 					this.FinishOrder();
| 760| 760| 					return;
| 761| 761| 				}
| 762|    |-				else
| 763|    |-				{
|    | 762|+				
| 764| 763| 					this.SetNextState("GARRISON.APPROACHING");
| 765| 764| 					return;
| 766|    |-				}
|    | 765|+				
| 767| 766| 			}
| 768| 767| 
| 769| 768| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1027|1027| 			},
|1028|1028| 		},
|1029|1029| 
|1030|    |-		"GARRISON":{
|    |1030|+		"GARRISON": {
|1031|1031| 			"enter": function() {
|1032|1032| 				// If the garrisonholder should pickup, warn it so it can take needed action
|1033|1033| 				var cmpGarrisonHolder = Engine.QueryInterface(this.order.data.target, IID_GarrisonHolder);
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1976|1976| 
|1977|1977| 				"Attacked": function(msg) {
|1978|1978| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|1979|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|1980|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |1979|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |1980|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|1981|1981| 						this.RespondToTargetedEntities([msg.data.attacker]);
|1982|1982| 				},
|1983|1983| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3217|3217| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3218|3218| 
|3219|3219| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3220|    |-							// only used for domestic animals
|    |3220|+		// only used for domestic animals
|3221|3221| 	},
|3222|3222| };
|3223|3223| 
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3275|3275| 
|3276|3276| UnitAI.prototype.IsAnimal = function()
|3277|3277| {
|3278|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3278|+	return (!!this.template.NaturalBehaviour);
|3279|3279| };
|3280|3280| 
|3281|3281| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3405|3405| 		{
|3406|3406| 			let index = this.GetCurrentState().indexOf(".");
|3407|3407| 			if (index != -1)
|3408|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3408|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3409|3409| 			this.Stop(false);
|3410|3410| 		}
|3411|3411| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3545|3545| };
|3546|3546| 
|3547|3547| 
|3548|    |-//// FSM linkage functions ////
|    |3548|+// // FSM linkage functions ////
|3549|3549| 
|3550|3550| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3551|3551| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, { "type": "Timer", "data": data, "lateness": lateness});
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness });
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, { "type": "ConstructionFinished", "data": msg});
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg });
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, { "type": "Attacked", "data": msg});
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg });
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, { "type": "GuardedAttacked", "data": msg.data});
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data });
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, { "type": "HealthChanged", "from": msg.from, "to": msg.to});
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to });
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, { "type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg });
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, { "type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg });
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, { "type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed });
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3982|3982| 	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|    |-//// Helper functions to be called by the FSM ////
|    |3985|+// // Helper functions to be called by the FSM ////
|3986|3986| 
|3987|3987| UnitAI.prototype.GetWalkSpeed = function()
|3988|3988| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4651|4651| UnitAI.prototype.AttackEntityInZone = function(ents)
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|    |-		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|    |4654|+		this.CanAttack(target) &&
|    |4655|+		this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|4656| 		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|4654| 		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|    |-		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|    |4655|+		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|    |4656|+		(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|4659|4659| 		return false;
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4716|4716| 	// If we are guarding/escorting, don't abandon as long as the guarded unit is in target range of the attacker
|4717|4717| 	if (this.isGuardOf)
|4718|4718| 	{
|4719|    |-		var cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4719|+		var cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|4723|    |-				return false;
|    |4723|+			return false;
|4724|4724| 	}
|4725|4725| 
|4726|4726| 	// Stop if we're in hold-ground mode and it's too far from the holding point
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4758|4758| 	// If we are guarding/escorting, chase at least as long as the guarded unit is in target range of the attacker
|4759|4759| 	if (this.isGuardOf)
|4760|4760| 	{
|4761|    |-		let cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4761|+		let cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4762|4762| 		let cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4763|4763| 		if (cmpUnitAI && cmpAttack &&
|4764|4764| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4771|4771| 	return false;
|4772|4772| };
|4773|4773| 
|4774|    |-//// External interface functions ////
|    |4774|+// // External interface functions ////
|4775|4775| 
|4776|4776| UnitAI.prototype.SetFormationController = function(ent)
|4777|4777| {
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4927|4927| 	{
|4928|4928| 		if (this.isGuardOf == target && this.order && this.order.type == "Guard")
|4929|4929| 			return;
|4930|    |-		else
|4931|    |-			this.RemoveGuard();
|    |4930|+		this.RemoveGuard();
|4932|4931| 	}
|4933|4932| 
|4934|4933| 	this.AddOrder("Guard", { "target": target, "force": false }, queued);
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5259|5259| 	    this.workOrders.length && this.workOrders[0].type == "Trade")
|5260|5260| 	{
|5261|5261| 		let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|5262|    |-		if (cmpTrader.HasBothMarkets() && 
|    |5262|+		if (cmpTrader.HasBothMarkets() &&
|5263|5263| 		   (cmpTrader.GetFirstMarket() == target && cmpTrader.GetSecondMarket() == source ||
|5264|5264| 		    cmpTrader.GetFirstMarket() == source && cmpTrader.GetSecondMarket() == target))
|5265|5265| 		{
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5540|5540| 				{
|5541|5541| 					var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5542|5542| 					var targetClasses = this.order.data.targetClasses;
|5543|    |-					if (targetClasses.attack && cmpIdentity
|5544|    |-						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5543|+					if (targetClasses.attack && cmpIdentity &&
|    |5544|+						!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|5546| 					if (targetClasses.avoid && cmpIdentity
|5547|5547| 						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5543|5543| 					if (targetClasses.attack && cmpIdentity
|5544|5544| 						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|    |-					if (targetClasses.avoid && cmpIdentity
|5547|    |-						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5546|+					if (targetClasses.avoid && cmpIdentity &&
|    |5547|+						MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5548|5548| 						continue;
|5549|5549| 					// Only used by the AIs to prevent some choices of targets
|5550|5550| 					if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5566|5566| 		{
|5567|5567| 			var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5568|5568| 			var targetClasses = this.order.data.targetClasses;
|5569|    |-			if (cmpIdentity && targetClasses.attack
|5570|    |-				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5569|+			if (cmpIdentity && targetClasses.attack &&
|    |5570|+				!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|5572| 			if (cmpIdentity && targetClasses.avoid
|5573|5573| 				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5569|5569| 			if (cmpIdentity && targetClasses.attack
|5570|5570| 				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|    |-			if (cmpIdentity && targetClasses.avoid
|5573|    |-				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5572|+			if (cmpIdentity && targetClasses.avoid &&
|    |5573|+				MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5574|5574| 				continue;
|5575|5575| 			// Only used by the AIs to prevent some choices of targets
|5576|5576| 			if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = { "x": x, "z": z};
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = {"x": x, "z": z };
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5753|5753| 	return false;
|5754|5754| };
|5755|5755| 
|5756|    |-//// Helper functions ////
|    |5756|+// // Helper functions ////
|5757|5757| 
|5758|5758| UnitAI.prototype.CanAttack = function(target)
|5759|5759| {
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5957|5957| 	return cmpPack && cmpPack.IsPacking();
|5958|5958| };
|5959|5959| 
|5960|    |-//// Formation specific functions ////
|    |5960|+// // Formation specific functions ////
|5961|5961| 
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|5964|5964| 	var cmpAttack = Engine.QueryInterface(this.entity, IID_Attack);
|5965|    |-	return cmpAttack && cmpAttack.CanAttackAsFormation()
|5966|    |-		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    |5965|+	return cmpAttack && cmpAttack.CanAttackAsFormation() &&
|    |5966|+		this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|5969| //// Animal specific functions ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5966|5966| 		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|    |-//// Animal specific functions ////
|    |5969|+// // Animal specific functions ////
|5970|5970| 
|5971|5971| UnitAI.prototype.MoveRandomly = function(distance)
|5972|5972| {

binaries/data/mods/public/simulation/components/UnitAI.js
| 327| »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'Order.WalkToTarget' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
| 914| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 939| »   »   »   "enter":·function(msg)·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 989| »   »   »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'enter' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
|1052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1088| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1120| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1280| »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1337| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1512| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1534| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1566| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1720| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1770| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1848| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2025| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2141| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2416| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2449| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2555| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2621| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2660| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2871| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3791| »   var·isWorkType·=·type·=>·type·==·"Gather"·||·type·==·"Trade"·||·type·==·"Repair"·||·type·==·"ReturnResource";
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4638| »   var·target·=·ents.find(target·=>·this.CanAttack(target));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4653| »   var·target·=·ents.find(target·=>
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4699| »   var·ent·=·ents.find(ent·=>·this.CanHeal(ent));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4722| »   »   ····cmpAttack.GetAttackTypes().some(type·=>·cmpUnitAI.CheckTargetAttackRange(this.isGuardOf,·type)))
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|1980| »   »   »   »   »   »   &&·this.order.data.target·!=·msg.data.attacker·&&·this.GetBestAttackAgainst(msg.data.attacker,·true)·!=·"Capture")
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|3753| »   »   var·order·=·{·"type":·type,·"data":·data·};
|    | [NORMAL] JSHintBear:
|    | 'order' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|3822| »   for·(var·i·=·0;·i·<·this.orderQueue.length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|4655| »   »   &&·this.CheckTargetDistanceFromHeldPosition(target,·IID_Attack,·this.GetBestAttackAgainst(target,·true))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|4656| »   »   &&·(this.GetStance().respondChaseBeyondVision·||·this.CheckTargetIsInVisionRange(target))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5544| »   »   »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5547| »   »   »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5560| »   var·targets·=·this.GetTargetsFromUnit();
|    | [NORMAL] JSHintBear:
|    | 'targets' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5561| »   for·(var·targ·of·targets)
|    | [NORMAL] JSHintBear:
|    | 'targ' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5567| »   »   »   var·cmpIdentity·=·Engine.QueryInterface(targ,·IID_Identity);
|    | [NORMAL] JSHintBear:
|    | 'cmpIdentity' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5568| »   »   »   var·targetClasses·=·this.order.data.targetClasses;
|    | [NORMAL] JSHintBear:
|    | 'targetClasses' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5570| »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5573| »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5648| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5651| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5656| »   »   var·cmpRanged·=·Engine.QueryInterface(this.entity,·iid);
|    | [NORMAL] JSHintBear:
|    | 'cmpRanged' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5659| »   »   var·range·=·iid·!==·IID_Attack·?·cmpRanged.GetRange()·:·cmpRanged.GetFullAttackRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5660| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5670| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5673| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5966| »   »   &&·this.GetCurrentState()·==·"FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/659/display/redirect

Nescio added a subscriber: Nescio.Sep 13 2019, 1:00 PM

Shouldn't template_unit_fauna.xml have <Controllable> set to false and template_unit_fauna_herd_domestic.xml and gaia/fauna_arctic_wolf_domestic.xml true?

Freagarach marked an inline comment as done.EditedSep 16 2019, 12:04 PM

Not necessarily, when a unit is not owned it can't be moved around, this patch allows any entity that is owned to be moved around, regardless of whether it is an animal or not. (Which would mean that gaia/fauna_arctic_wolf_domestic.xml is depraced hereafter.)

Not necessarily, when a unit is not owned it can't be moved around, this patch allows any entity that is owned to be moved around, regardless of whether it is an animal or not. (Which would mean that gaia/fauna_arctic_wolf_domestic.xml is depraced hereafter.)

This was the subject of a flamewar last time. IMO it's fine to control animals one owns right now.

This is committable with the caveat inline.

binaries/data/mods/public/simulation/helpers/Commands.js
877

I would prefer to fetch the name of the entity there instead of a generic message like that.

Freagarach updated this revision to Diff 9816.Sep 17 2019, 7:54 AM
Freagarach marked an inline comment as done.

Specify the type of unit which can't be controlled.

Freagarach added inline comments.
binaries/data/mods/public/simulation/helpers/Commands.js
878

I'm not sure whether this gets translated properly, markForTranslation was not in the lesson by @elexis ;)

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 537| 537| 			if (cmpGarrisonHolder)
| 538| 538| 			{
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541|    |-				    && player != +cmd.owner)
|    | 540|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 541|+				    player != +cmd.owner)
| 542| 542| 						continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540| 540| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541| 541| 				    && player != +cmd.owner)
| 542|    |-						continue;
|    | 542|+					continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 545| 545| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1161|1161| 
|1162|1162| 	// send Metadata info if any
|1163|1163| 	if (cmd.metadata)
|1164|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1164|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1165|1165| 
|1166|1166| 	// Tell the units to start building this new entity
|1167|1167| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1161|1161| 
|1162|1162| 	// send Metadata info if any
|1163|1163| 	if (cmd.metadata)
|1164|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1164|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1165|1165| 
|1166|1166| 	// Tell the units to start building this new entity
|1167|1167| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1161|1161| 
|1162|1162| 	// send Metadata info if any
|1163|1163| 	if (cmd.metadata)
|1164|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1164|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1165|1165| 
|1166|1166| 	// Tell the units to start building this new entity
|1167|1167| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1269|1269| 		}
|1270|1270| 
|1271|1271| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1272|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1272|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1273|1273| 	}
|1274|1274| 
|1275|1275| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1333|1333| 
|1334|1334| 				if (i > 0)
|1335|1335| 				{
|1336|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1336|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1337|1337| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1338|1338| 					// TODO: ensure that cmpPreviousObstruction exists
|1339|1339| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1496|1496| 		// Check that all its members are selected
|1497|1497| 		var fid = formationIds[0];
|1498|1498| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1499|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1500|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1499|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1500|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1501|1501| 		{
|1502|1502| 			cmpFormation.DeleteTwinFormations();
|1503|1503| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1604|1604| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1605|1605| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1606|1606| 				if (matrix[i][j] < distSq)
|1607|    |-					closeClusters = [i,j];
|    |1607|+					closeClusters = [i, j];
|1608|1608| 
|1609|1609| 		// if no more close clusters found, just return all found clusters so far
|1610|1610| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1626|1626| 		}
|1627|1627| 		// remove the rows and columns in the matrix for the merged clusters,
|1628|1628| 		// and the clusters themselves from the cluster list
|1629|    |-		clusters.splice(closeClusters[0],1);
|    |1629|+		clusters.splice(closeClusters[0], 1);
|1630|1630| 		clusters.splice(closeClusters[1],1);
|1631|1631| 		matrix.splice(closeClusters[0],1);
|1632|1632| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1627|1627| 		// remove the rows and columns in the matrix for the merged clusters,
|1628|1628| 		// and the clusters themselves from the cluster list
|1629|1629| 		clusters.splice(closeClusters[0],1);
|1630|    |-		clusters.splice(closeClusters[1],1);
|    |1630|+		clusters.splice(closeClusters[1], 1);
|1631|1631| 		matrix.splice(closeClusters[0],1);
|1632|1632| 		matrix.splice(closeClusters[1],1);
|1633|1633| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1628|1628| 		// and the clusters themselves from the cluster list
|1629|1629| 		clusters.splice(closeClusters[0],1);
|1630|1630| 		clusters.splice(closeClusters[1],1);
|1631|    |-		matrix.splice(closeClusters[0],1);
|    |1631|+		matrix.splice(closeClusters[0], 1);
|1632|1632| 		matrix.splice(closeClusters[1],1);
|1633|1633| 		for (let i = 0; i < matrix.length; ++i)
|1634|1634| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1629|1629| 		clusters.splice(closeClusters[0],1);
|1630|1630| 		clusters.splice(closeClusters[1],1);
|1631|1631| 		matrix.splice(closeClusters[0],1);
|1632|    |-		matrix.splice(closeClusters[1],1);
|    |1632|+		matrix.splice(closeClusters[1], 1);
|1633|1633| 		for (let i = 0; i < matrix.length; ++i)
|1634|1634| 		{
|1635|1635| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1633|1633| 		for (let i = 0; i < matrix.length; ++i)
|1634|1634| 		{
|1635|1635| 			if (matrix[i].length > closeClusters[0])
|1636|    |-				matrix[i].splice(closeClusters[0],1);
|    |1636|+				matrix[i].splice(closeClusters[0], 1);
|1637|1637| 			if (matrix[i].length > closeClusters[1])
|1638|1638| 				matrix[i].splice(closeClusters[1],1);
|1639|1639| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1635|1635| 			if (matrix[i].length > closeClusters[0])
|1636|1636| 				matrix[i].splice(closeClusters[0],1);
|1637|1637| 			if (matrix[i].length > closeClusters[1])
|1638|    |-				matrix[i].splice(closeClusters[1],1);
|    |1638|+				matrix[i].splice(closeClusters[1], 1);
|1639|1639| 		}
|1640|1640| 		// add a new row of distances to the matrix and the new cluster
|1641|1641| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 789| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1292| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1293| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1523| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1602| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1619| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1633| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 541| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 729| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 966| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 979| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1126| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1378| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1461| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1500| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1526| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1559| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 801| 801| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 802| 802| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 803| 803| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 804|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 804|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 805| 805| 	}
| 806| 806| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 807| 807| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1634|1634| 			{
|1635|1635| 				minDist2 = dist2;
|1636|1636| 				minDistEntitySnapData = {
|1637|    |-						"x": pos.x,
|    |1637|+					"x": pos.x,
|1638|1638| 						"z": pos.z,
|1639|1639| 						"angle": cmpPosition.GetRotation().y,
|1640|1640| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1635|1635| 				minDist2 = dist2;
|1636|1636| 				minDistEntitySnapData = {
|1637|1637| 						"x": pos.x,
|1638|    |-						"z": pos.z,
|    |1638|+					"z": pos.z,
|1639|1639| 						"angle": cmpPosition.GetRotation().y,
|1640|1640| 						"ent": ent
|1641|1641| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1636|1636| 				minDistEntitySnapData = {
|1637|1637| 						"x": pos.x,
|1638|1638| 						"z": pos.z,
|1639|    |-						"angle": cmpPosition.GetRotation().y,
|    |1639|+					"angle": cmpPosition.GetRotation().y,
|1640|1640| 						"ent": ent
|1641|1641| 				};
|1642|1642| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1637|1637| 						"x": pos.x,
|1638|1638| 						"z": pos.z,
|1639|1639| 						"angle": cmpPosition.GetRotation().y,
|1640|    |-						"ent": ent
|    |1640|+					"ent": ent
|1641|1641| 				};
|1642|1642| 			}
|1643|1643| 		}
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 759| 759| 					this.FinishOrder();
| 760| 760| 					return;
| 761| 761| 				}
| 762|    |-				else
| 763|    |-				{
|    | 762|+				
| 764| 763| 					this.SetNextState("GARRISON.APPROACHING");
| 765| 764| 					return;
| 766|    |-				}
|    | 765|+				
| 767| 766| 			}
| 768| 767| 
| 769| 768| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1027|1027| 			},
|1028|1028| 		},
|1029|1029| 
|1030|    |-		"GARRISON":{
|    |1030|+		"GARRISON": {
|1031|1031| 			"enter": function() {
|1032|1032| 				// If the garrisonholder should pickup, warn it so it can take needed action
|1033|1033| 				var cmpGarrisonHolder = Engine.QueryInterface(this.order.data.target, IID_GarrisonHolder);
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1976|1976| 
|1977|1977| 				"Attacked": function(msg) {
|1978|1978| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|1979|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|1980|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |1979|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |1980|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|1981|1981| 						this.RespondToTargetedEntities([msg.data.attacker]);
|1982|1982| 				},
|1983|1983| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3217|3217| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3218|3218| 
|3219|3219| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3220|    |-							// only used for domestic animals
|    |3220|+		// only used for domestic animals
|3221|3221| 	},
|3222|3222| };
|3223|3223| 
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3275|3275| 
|3276|3276| UnitAI.prototype.IsAnimal = function()
|3277|3277| {
|3278|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3278|+	return (!!this.template.NaturalBehaviour);
|3279|3279| };
|3280|3280| 
|3281|3281| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3405|3405| 		{
|3406|3406| 			let index = this.GetCurrentState().indexOf(".");
|3407|3407| 			if (index != -1)
|3408|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3408|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3409|3409| 			this.Stop(false);
|3410|3410| 		}
|3411|3411| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3545|3545| };
|3546|3546| 
|3547|3547| 
|3548|    |-//// FSM linkage functions ////
|    |3548|+// // FSM linkage functions ////
|3549|3549| 
|3550|3550| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3551|3551| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, { "type": "Timer", "data": data, "lateness": lateness});
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness });
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, { "type": "ConstructionFinished", "data": msg});
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg });
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, { "type": "Attacked", "data": msg});
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg });
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, { "type": "GuardedAttacked", "data": msg.data});
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data });
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, { "type": "HealthChanged", "from": msg.from, "to": msg.to});
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to });
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, { "type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg });
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, { "type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg });
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, { "type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed });
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3982|3982| 	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|    |-//// Helper functions to be called by the FSM ////
|    |3985|+// // Helper functions to be called by the FSM ////
|3986|3986| 
|3987|3987| UnitAI.prototype.GetWalkSpeed = function()
|3988|3988| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4651|4651| UnitAI.prototype.AttackEntityInZone = function(ents)
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|    |-		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|    |4654|+		this.CanAttack(target) &&
|    |4655|+		this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|4656| 		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|4654| 		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|    |-		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|    |4655|+		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|    |4656|+		(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|4659|4659| 		return false;
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4716|4716| 	// If we are guarding/escorting, don't abandon as long as the guarded unit is in target range of the attacker
|4717|4717| 	if (this.isGuardOf)
|4718|4718| 	{
|4719|    |-		var cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4719|+		var cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|4723|    |-				return false;
|    |4723|+			return false;
|4724|4724| 	}
|4725|4725| 
|4726|4726| 	// Stop if we're in hold-ground mode and it's too far from the holding point
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4758|4758| 	// If we are guarding/escorting, chase at least as long as the guarded unit is in target range of the attacker
|4759|4759| 	if (this.isGuardOf)
|4760|4760| 	{
|4761|    |-		let cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4761|+		let cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4762|4762| 		let cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4763|4763| 		if (cmpUnitAI && cmpAttack &&
|4764|4764| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4771|4771| 	return false;
|4772|4772| };
|4773|4773| 
|4774|    |-//// External interface functions ////
|    |4774|+// // External interface functions ////
|4775|4775| 
|4776|4776| UnitAI.prototype.SetFormationController = function(ent)
|4777|4777| {
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4927|4927| 	{
|4928|4928| 		if (this.isGuardOf == target && this.order && this.order.type == "Guard")
|4929|4929| 			return;
|4930|    |-		else
|4931|    |-			this.RemoveGuard();
|    |4930|+		this.RemoveGuard();
|4932|4931| 	}
|4933|4932| 
|4934|4933| 	this.AddOrder("Guard", { "target": target, "force": false }, queued);
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5259|5259| 	    this.workOrders.length && this.workOrders[0].type == "Trade")
|5260|5260| 	{
|5261|5261| 		let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|5262|    |-		if (cmpTrader.HasBothMarkets() && 
|    |5262|+		if (cmpTrader.HasBothMarkets() &&
|5263|5263| 		   (cmpTrader.GetFirstMarket() == target && cmpTrader.GetSecondMarket() == source ||
|5264|5264| 		    cmpTrader.GetFirstMarket() == source && cmpTrader.GetSecondMarket() == target))
|5265|5265| 		{
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5540|5540| 				{
|5541|5541| 					var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5542|5542| 					var targetClasses = this.order.data.targetClasses;
|5543|    |-					if (targetClasses.attack && cmpIdentity
|5544|    |-						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5543|+					if (targetClasses.attack && cmpIdentity &&
|    |5544|+						!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|5546| 					if (targetClasses.avoid && cmpIdentity
|5547|5547| 						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5543|5543| 					if (targetClasses.attack && cmpIdentity
|5544|5544| 						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|    |-					if (targetClasses.avoid && cmpIdentity
|5547|    |-						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5546|+					if (targetClasses.avoid && cmpIdentity &&
|    |5547|+						MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5548|5548| 						continue;
|5549|5549| 					// Only used by the AIs to prevent some choices of targets
|5550|5550| 					if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5566|5566| 		{
|5567|5567| 			var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5568|5568| 			var targetClasses = this.order.data.targetClasses;
|5569|    |-			if (cmpIdentity && targetClasses.attack
|5570|    |-				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5569|+			if (cmpIdentity && targetClasses.attack &&
|    |5570|+				!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|5572| 			if (cmpIdentity && targetClasses.avoid
|5573|5573| 				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5569|5569| 			if (cmpIdentity && targetClasses.attack
|5570|5570| 				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|    |-			if (cmpIdentity && targetClasses.avoid
|5573|    |-				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5572|+			if (cmpIdentity && targetClasses.avoid &&
|    |5573|+				MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5574|5574| 				continue;
|5575|5575| 			// Only used by the AIs to prevent some choices of targets
|5576|5576| 			if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = { "x": x, "z": z};
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = {"x": x, "z": z };
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5753|5753| 	return false;
|5754|5754| };
|5755|5755| 
|5756|    |-//// Helper functions ////
|    |5756|+// // Helper functions ////
|5757|5757| 
|5758|5758| UnitAI.prototype.CanAttack = function(target)
|5759|5759| {
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5957|5957| 	return cmpPack && cmpPack.IsPacking();
|5958|5958| };
|5959|5959| 
|5960|    |-//// Formation specific functions ////
|    |5960|+// // Formation specific functions ////
|5961|5961| 
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|5964|5964| 	var cmpAttack = Engine.QueryInterface(this.entity, IID_Attack);
|5965|    |-	return cmpAttack && cmpAttack.CanAttackAsFormation()
|5966|    |-		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    |5965|+	return cmpAttack && cmpAttack.CanAttackAsFormation() &&
|    |5966|+		this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|5969| //// Animal specific functions ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5966|5966| 		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|    |-//// Animal specific functions ////
|    |5969|+// // Animal specific functions ////
|5970|5970| 
|5971|5971| UnitAI.prototype.MoveRandomly = function(distance)
|5972|5972| {

binaries/data/mods/public/simulation/components/UnitAI.js
| 327| »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'Order.WalkToTarget' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
| 914| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 939| »   »   »   "enter":·function(msg)·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 989| »   »   »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'enter' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
|1052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1088| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1120| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1280| »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1337| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1512| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1534| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1566| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1720| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1770| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1848| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2025| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2141| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2416| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2449| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2555| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2621| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2660| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2871| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3791| »   var·isWorkType·=·type·=>·type·==·"Gather"·||·type·==·"Trade"·||·type·==·"Repair"·||·type·==·"ReturnResource";
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4638| »   var·target·=·ents.find(target·=>·this.CanAttack(target));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4653| »   var·target·=·ents.find(target·=>
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4699| »   var·ent·=·ents.find(ent·=>·this.CanHeal(ent));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4722| »   »   ····cmpAttack.GetAttackTypes().some(type·=>·cmpUnitAI.CheckTargetAttackRange(this.isGuardOf,·type)))
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|1980| »   »   »   »   »   »   &&·this.order.data.target·!=·msg.data.attacker·&&·this.GetBestAttackAgainst(msg.data.attacker,·true)·!=·"Capture")
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|3753| »   »   var·order·=·{·"type":·type,·"data":·data·};
|    | [NORMAL] JSHintBear:
|    | 'order' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|3822| »   for·(var·i·=·0;·i·<·this.orderQueue.length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|4655| »   »   &&·this.CheckTargetDistanceFromHeldPosition(target,·IID_Attack,·this.GetBestAttackAgainst(target,·true))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|4656| »   »   &&·(this.GetStance().respondChaseBeyondVision·||·this.CheckTargetIsInVisionRange(target))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5544| »   »   »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5547| »   »   »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5560| »   var·targets·=·this.GetTargetsFromUnit();
|    | [NORMAL] JSHintBear:
|    | 'targets' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5561| »   for·(var·targ·of·targets)
|    | [NORMAL] JSHintBear:
|    | 'targ' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5567| »   »   »   var·cmpIdentity·=·Engine.QueryInterface(targ,·IID_Identity);
|    | [NORMAL] JSHintBear:
|    | 'cmpIdentity' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5568| »   »   »   var·targetClasses·=·this.order.data.targetClasses;
|    | [NORMAL] JSHintBear:
|    | 'targetClasses' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5570| »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5573| »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5648| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5651| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5656| »   »   var·cmpRanged·=·Engine.QueryInterface(this.entity,·iid);
|    | [NORMAL] JSHintBear:
|    | 'cmpRanged' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5659| »   »   var·range·=·iid·!==·IID_Attack·?·cmpRanged.GetRange()·:·cmpRanged.GetFullAttackRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5660| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5670| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5673| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5966| »   »   &&·this.GetCurrentState()·==·"FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/728/display/redirect

Freagarach updated this revision to Diff 9817.Sep 17 2019, 8:04 AM

Fix test.

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'SetInterval' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  35|  35| 
|  36|  36| 
|  37|  37| 	AddMock(SYSTEM_ENTITY, IID_Timer, {
|  38|    |-		SetInterval: function() { },
|    |  38|+		"SetInterval": function() { },
|  39|  39| 		SetTimeout: function() { },
|  40|  40| 	});
|  41|  41| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'SetTimeout' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  36|  36| 
|  37|  37| 	AddMock(SYSTEM_ENTITY, IID_Timer, {
|  38|  38| 		SetInterval: function() { },
|  39|    |-		SetTimeout: function() { },
|    |  39|+		"SetTimeout": function() { },
|  40|  40| 	});
|  41|  41| 
|  42|  42| 	AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CreateActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  40|  40| 	});
|  41|  41| 
|  42|  42| 	AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|  43|    |-		CreateActiveQuery: function(ent, minRange, maxRange, players, iid, flags) {
|    |  43|+		"CreateActiveQuery": function(ent, minRange, maxRange, players, iid, flags) {
|  44|  44| 			return 1;
|  45|  45| 		},
|  46|  46| 		EnableActiveQuery: function(id) { },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'EnableActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  43|  43| 		CreateActiveQuery: function(ent, minRange, maxRange, players, iid, flags) {
|  44|  44| 			return 1;
|  45|  45| 		},
|  46|    |-		EnableActiveQuery: function(id) { },
|    |  46|+		"EnableActiveQuery": function(id) { },
|  47|  47| 		ResetActiveQuery: function(id) { if (mode == 0) return []; else return [enemy]; },
|  48|  48| 		DisableActiveQuery: function(id) { },
|  49|  49| 		GetEntityFlagMask: function(identifier) { },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'ResetActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  44|  44| 			return 1;
|  45|  45| 		},
|  46|  46| 		EnableActiveQuery: function(id) { },
|  47|    |-		ResetActiveQuery: function(id) { if (mode == 0) return []; else return [enemy]; },
|    |  47|+		"ResetActiveQuery": function(id) { if (mode == 0) return []; else return [enemy]; },
|  48|  48| 		DisableActiveQuery: function(id) { },
|  49|  49| 		GetEntityFlagMask: function(identifier) { },
|  50|  50| 	});
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  44|  44| 			return 1;
|  45|  45| 		},
|  46|  46| 		EnableActiveQuery: function(id) { },
|  47|    |-		ResetActiveQuery: function(id) { if (mode == 0) return []; else return [enemy]; },
|    |  47|+		ResetActiveQuery: function(id) { if (mode == 0) return []; return [enemy]; },
|  48|  48| 		DisableActiveQuery: function(id) { },
|  49|  49| 		GetEntityFlagMask: function(identifier) { },
|  50|  50| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'DisableActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  45|  45| 		},
|  46|  46| 		EnableActiveQuery: function(id) { },
|  47|  47| 		ResetActiveQuery: function(id) { if (mode == 0) return []; else return [enemy]; },
|  48|    |-		DisableActiveQuery: function(id) { },
|    |  48|+		"DisableActiveQuery": function(id) { },
|  49|  49| 		GetEntityFlagMask: function(identifier) { },
|  50|  50| 	});
|  51|  51| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetEntityFlagMask' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  46|  46| 		EnableActiveQuery: function(id) { },
|  47|  47| 		ResetActiveQuery: function(id) { if (mode == 0) return []; else return [enemy]; },
|  48|  48| 		DisableActiveQuery: function(id) { },
|  49|    |-		GetEntityFlagMask: function(identifier) { },
|    |  49|+		"GetEntityFlagMask": function(identifier) { },
|  50|  50| 	});
|  51|  51| 
|  52|  52| 	AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCurrentTemplateName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  50|  50| 	});
|  51|  51| 
|  52|  52| 	AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|  53|    |-		GetCurrentTemplateName: function(ent) { return "special/formations/line_closed"; },
|    |  53|+		"GetCurrentTemplateName": function(ent) { return "special/formations/line_closed"; },
|  54|  54| 	});
|  55|  55| 
|  56|  56| 	AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPlayerByID' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  54|  54| 	});
|  55|  55| 
|  56|  56| 	AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|  57|    |-		GetPlayerByID: function(id) { return playerEntity; },
|    |  57|+		"GetPlayerByID": function(id) { return playerEntity; },
|  58|  58| 		GetNumPlayers: function() { return 2; },
|  59|  59| 	});
|  60|  60| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetNumPlayers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  55|  55| 
|  56|  56| 	AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|  57|  57| 		GetPlayerByID: function(id) { return playerEntity; },
|  58|    |-		GetNumPlayers: function() { return 2; },
|    |  58|+		"GetNumPlayers": function() { return 2; },
|  59|  59| 	});
|  60|  60| 
|  61|  61| 	AddMock(playerEntity, IID_Player, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  59|  59| 	});
|  60|  60| 
|  61|  61| 	AddMock(playerEntity, IID_Player, {
|  62|    |-		IsAlly: function() { return false; },
|    |  62|+		"IsAlly": function() { return false; },
|  63|  63| 		IsEnemy: function() { return true; },
|  64|  64| 		GetEnemies: function() { return []; },
|  65|  65| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  60|  60| 
|  61|  61| 	AddMock(playerEntity, IID_Player, {
|  62|  62| 		IsAlly: function() { return false; },
|  63|    |-		IsEnemy: function() { return true; },
|    |  63|+		"IsEnemy": function() { return true; },
|  64|  64| 		GetEnemies: function() { return []; },
|  65|  65| 	});
|  66|  66| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetEnemies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  61|  61| 	AddMock(playerEntity, IID_Player, {
|  62|  62| 		IsAlly: function() { return false; },
|  63|  63| 		IsEnemy: function() { return true; },
|  64|    |-		GetEnemies: function() { return []; },
|    |  64|+		"GetEnemies": function() { return []; },
|  65|  65| 	});
|  66|  66| 
|  67|  67| 	AddMock(SYSTEM_ENTITY, IID_ObstructionManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetClassesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  71|  71| 	var unitAI = ConstructComponent(unit, "UnitAI", { "FormationController": "false", "DefaultStance": "aggressive", "Controllable": "true" });
|  72|  72| 
|  73|  73| 	AddMock(unit, IID_Identity, {
|  74|    |-		GetClassesList: function() { return []; },
|    |  74|+		"GetClassesList": function() { return []; },
|  75|  75| 	});
|  76|  76| 
|  77|  77| 	AddMock(unit, IID_Ownership, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetOwner' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  75|  75| 	});
|  76|  76| 
|  77|  77| 	AddMock(unit, IID_Ownership, {
|  78|    |-		GetOwner: function() { return 1; },
|    |  78|+		"GetOwner": function() { return 1; },
|  79|  79| 	});
|  80|  80| 
|  81|  81| 	AddMock(unit, IID_Position, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTurretParent' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  79|  79| 	});
|  80|  80| 
|  81|  81| 	AddMock(unit, IID_Position, {
|  82|    |-		GetTurretParent: function() { return INVALID_ENTITY; },
|    |  82|+		"GetTurretParent": function() { return INVALID_ENTITY; },
|  83|  83| 		GetPosition: function() { return new Vector3D(); },
|  84|  84| 		GetPosition2D: function() { return new Vector2D(); },
|  85|  85| 		GetRotation: function() { return { "y": 0 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  80|  80| 
|  81|  81| 	AddMock(unit, IID_Position, {
|  82|  82| 		GetTurretParent: function() { return INVALID_ENTITY; },
|  83|    |-		GetPosition: function() { return new Vector3D(); },
|    |  83|+		"GetPosition": function() { return new Vector3D(); },
|  84|  84| 		GetPosition2D: function() { return new Vector2D(); },
|  85|  85| 		GetRotation: function() { return { "y": 0 }; },
|  86|  86| 		IsInWorld: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition2D' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  81|  81| 	AddMock(unit, IID_Position, {
|  82|  82| 		GetTurretParent: function() { return INVALID_ENTITY; },
|  83|  83| 		GetPosition: function() { return new Vector3D(); },
|  84|    |-		GetPosition2D: function() { return new Vector2D(); },
|    |  84|+		"GetPosition2D": function() { return new Vector2D(); },
|  85|  85| 		GetRotation: function() { return { "y": 0 }; },
|  86|  86| 		IsInWorld: function() { return true; },
|  87|  87| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRotation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  82|  82| 		GetTurretParent: function() { return INVALID_ENTITY; },
|  83|  83| 		GetPosition: function() { return new Vector3D(); },
|  84|  84| 		GetPosition2D: function() { return new Vector2D(); },
|  85|    |-		GetRotation: function() { return { "y": 0 }; },
|    |  85|+		"GetRotation": function() { return { "y": 0 }; },
|  86|  86| 		IsInWorld: function() { return true; },
|  87|  87| 	});
|  88|  88| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsInWorld' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  83|  83| 		GetPosition: function() { return new Vector3D(); },
|  84|  84| 		GetPosition2D: function() { return new Vector2D(); },
|  85|  85| 		GetRotation: function() { return { "y": 0 }; },
|  86|    |-		IsInWorld: function() { return true; },
|    |  86|+		"IsInWorld": function() { return true; },
|  87|  87| 	});
|  88|  88| 
|  89|  89| 	AddMock(unit, IID_UnitMotion, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  95|  95| 	});
|  96|  96| 
|  97|  97| 	AddMock(unit, IID_Vision, {
|  98|    |-		GetRange: function() { return 10; },
|    |  98|+		"GetRange": function() { return 10; },
|  99|  99| 	});
| 100| 100| 
| 101| 101| 	AddMock(unit, IID_Attack, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  99|  99| 	});
| 100| 100| 
| 101| 101| 	AddMock(unit, IID_Attack, {
| 102|    |-		GetRange: function() { return { "max": 10, "min": 0}; },
|    | 102|+		"GetRange": function() { return { "max": 10, "min": 0}; },
| 103| 103| 		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  99|  99| 	});
| 100| 100| 
| 101| 101| 	AddMock(unit, IID_Attack, {
| 102|    |-		GetRange: function() { return { "max": 10, "min": 0}; },
|    | 102|+		GetRange: function() { return { "max": 10, "min": 0 }; },
| 103| 103| 		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetFullAttackRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 100| 100| 
| 101| 101| 	AddMock(unit, IID_Attack, {
| 102| 102| 		GetRange: function() { return { "max": 10, "min": 0}; },
| 103|    |-		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
|    | 103|+		"GetFullAttackRange": function() { return { "max": 40, "min": 0}; },
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
| 106| 106| 		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 100| 100| 
| 101| 101| 	AddMock(unit, IID_Attack, {
| 102| 102| 		GetRange: function() { return { "max": 10, "min": 0}; },
| 103|    |-		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
|    | 103|+		GetFullAttackRange: function() { return { "max": 40, "min": 0 }; },
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
| 106| 106| 		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetBestAttackAgainst' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 101| 101| 	AddMock(unit, IID_Attack, {
| 102| 102| 		GetRange: function() { return { "max": 10, "min": 0}; },
| 103| 103| 		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 104|    |-		GetBestAttackAgainst: function(t) { return "melee"; },
|    | 104|+		"GetBestAttackAgainst": function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
| 106| 106| 		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 107| 107| 		CanAttack: function(v) { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPreference' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 102| 102| 		GetRange: function() { return { "max": 10, "min": 0}; },
| 103| 103| 		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105|    |-		GetPreference: function(t) { return 0; },
|    | 105|+		"GetPreference": function(t) { return 0; },
| 106| 106| 		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 107| 107| 		CanAttack: function(v) { return true; },
| 108| 108| 		CompareEntitiesByPreference: function(a, b) { return 0; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTimers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 103| 103| 		GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
| 106|    |-		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | 106|+		"GetTimers": function() { return { "prepare": 500, "repeat": 1000 }; },
| 107| 107| 		CanAttack: function(v) { return true; },
| 108| 108| 		CompareEntitiesByPreference: function(a, b) { return 0; },
| 109| 109| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanAttack' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 104| 104| 		GetBestAttackAgainst: function(t) { return "melee"; },
| 105| 105| 		GetPreference: function(t) { return 0; },
| 106| 106| 		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 107|    |-		CanAttack: function(v) { return true; },
|    | 107|+		"CanAttack": function(v) { return true; },
| 108| 108| 		CompareEntitiesByPreference: function(a, b) { return 0; },
| 109| 109| 	});
| 110| 110| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CompareEntitiesByPreference' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 105| 105| 		GetPreference: function(t) { return 0; },
| 106| 106| 		GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 107| 107| 		CanAttack: function(v) { return true; },
| 108|    |-		CompareEntitiesByPreference: function(a, b) { return 0; },
|    | 108|+		"CompareEntitiesByPreference": function(a, b) { return 0; },
| 109| 109| 	});
| 110| 110| 
| 111| 111| 	unitAI.OnCreate();
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 116| 116| 	if (mode == 1)
| 117| 117| 	{
| 118| 118| 		AddMock(enemy, IID_Health, {
| 119|    |-			GetHitpoints: function() { return 10; },
|    | 119|+			"GetHitpoints": function() { return 10; },
| 120| 120| 		});
| 121| 121| 		AddMock(enemy, IID_UnitAI, {
| 122| 122| 			IsAnimal: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAnimal' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 119| 119| 			GetHitpoints: function() { return 10; },
| 120| 120| 		});
| 121| 121| 		AddMock(enemy, IID_UnitAI, {
| 122|    |-			IsAnimal: function() { return false; }
|    | 122|+			"IsAnimal": function() { return false; }
| 123| 123| 		});
| 124| 124| 	}
| 125| 125| 	else if (mode == 2)
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 124| 124| 	}
| 125| 125| 	else if (mode == 2)
| 126| 126| 		AddMock(enemy, IID_Health, {
| 127|    |-			GetHitpoints: function() { return 0; },
|    | 127|+			"GetHitpoints": function() { return 0; },
| 128| 128| 		});
| 129| 129| 
| 130| 130| 	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 127| 127| 			GetHitpoints: function() { return 0; },
| 128| 128| 		});
| 129| 129| 
| 130|    |-	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
|    | 130|+	var controllerFormation = ConstructComponent(controller, "Formation", { "FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
| 131| 131| 	var controllerAI = ConstructComponent(controller, "UnitAI", { "FormationController": "true", "DefaultStance": "aggressive", "Controllable": "true" });
| 132| 132| 
| 133| 133| 	AddMock(controller, IID_Position, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 127| 127| 			GetHitpoints: function() { return 0; },
| 128| 128| 		});
| 129| 129| 
| 130|    |-	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
|    | 130|+	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0 });
| 131| 131| 	var controllerAI = ConstructComponent(controller, "UnitAI", { "FormationController": "true", "DefaultStance": "aggressive", "Controllable": "true" });
| 132| 132| 
| 133| 133| 	AddMock(controller, IID_Position, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'JumpTo' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 131| 131| 	var controllerAI = ConstructComponent(controller, "UnitAI", { "FormationController": "true", "DefaultStance": "aggressive", "Controllable": "true" });
| 132| 132| 
| 133| 133| 	AddMock(controller, IID_Position, {
| 134|    |-		JumpTo: function(x, z) { this.x = x; this.z = z; },
|    | 134|+		"JumpTo": function(x, z) { this.x = x; this.z = z; },
| 135| 135| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 136| 136| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 137| 137| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTurretParent' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 132| 132| 
| 133| 133| 	AddMock(controller, IID_Position, {
| 134| 134| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 135|    |-		GetTurretParent: function() { return INVALID_ENTITY; },
|    | 135|+		"GetTurretParent": function() { return INVALID_ENTITY; },
| 136| 136| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 137| 137| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 138| 138| 		GetRotation: function() { return { "y": 0 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 133| 133| 	AddMock(controller, IID_Position, {
| 134| 134| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 135| 135| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 136|    |-		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
|    | 136|+		"GetPosition": function() { return new Vector3D(this.x, 0, this.z); },
| 137| 137| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 138| 138| 		GetRotation: function() { return { "y": 0 }; },
| 139| 139| 		IsInWorld: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition2D' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 134| 134| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 135| 135| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 136| 136| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 137|    |-		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
|    | 137|+		"GetPosition2D": function() { return new Vector2D(this.x, this.z); },
| 138| 138| 		GetRotation: function() { return { "y": 0 }; },
| 139| 139| 		IsInWorld: function() { return true; },
| 140| 140| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRotation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 135| 135| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 136| 136| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 137| 137| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 138|    |-		GetRotation: function() { return { "y": 0 }; },
|    | 138|+		"GetRotation": function() { return { "y": 0 }; },
| 139| 139| 		IsInWorld: function() { return true; },
| 140| 140| 	});
| 141| 141| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsInWorld' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 136| 136| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 137| 137| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 138| 138| 		GetRotation: function() { return { "y": 0 }; },
| 139|    |-		IsInWorld: function() { return true; },
|    | 139|+		"IsInWorld": function() { return true; },
| 140| 140| 	});
| 141| 141| 
| 142| 142| 	AddMock(controller, IID_UnitMotion, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'SetInterval' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 186| 186| 	var unitAIs = [];
| 187| 187| 
| 188| 188| 	AddMock(SYSTEM_ENTITY, IID_Timer, {
| 189|    |-		SetInterval: function() { },
|    | 189|+		"SetInterval": function() { },
| 190| 190| 		SetTimeout: function() { },
| 191| 191| 	});
| 192| 192| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'SetTimeout' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 187| 187| 
| 188| 188| 	AddMock(SYSTEM_ENTITY, IID_Timer, {
| 189| 189| 		SetInterval: function() { },
| 190|    |-		SetTimeout: function() { },
|    | 190|+		"SetTimeout": function() { },
| 191| 191| 	});
| 192| 192| 
| 193| 193| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CreateActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 192| 192| 
| 193| 193| 
| 194| 194| 	AddMock(SYSTEM_ENTITY, IID_RangeManager, {
| 195|    |-		CreateActiveQuery: function(ent, minRange, maxRange, players, iid, flags) {
|    | 195|+		"CreateActiveQuery": function(ent, minRange, maxRange, players, iid, flags) {
| 196| 196| 			return 1;
| 197| 197| 		},
| 198| 198| 		EnableActiveQuery: function(id) { },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'EnableActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 195| 195| 		CreateActiveQuery: function(ent, minRange, maxRange, players, iid, flags) {
| 196| 196| 			return 1;
| 197| 197| 		},
| 198|    |-		EnableActiveQuery: function(id) { },
|    | 198|+		"EnableActiveQuery": function(id) { },
| 199| 199| 		ResetActiveQuery: function(id) { return [enemy]; },
| 200| 200| 		DisableActiveQuery: function(id) { },
| 201| 201| 		GetEntityFlagMask: function(identifier) { },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'ResetActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 196| 196| 			return 1;
| 197| 197| 		},
| 198| 198| 		EnableActiveQuery: function(id) { },
| 199|    |-		ResetActiveQuery: function(id) { return [enemy]; },
|    | 199|+		"ResetActiveQuery": function(id) { return [enemy]; },
| 200| 200| 		DisableActiveQuery: function(id) { },
| 201| 201| 		GetEntityFlagMask: function(identifier) { },
| 202| 202| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'DisableActiveQuery' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 197| 197| 		},
| 198| 198| 		EnableActiveQuery: function(id) { },
| 199| 199| 		ResetActiveQuery: function(id) { return [enemy]; },
| 200|    |-		DisableActiveQuery: function(id) { },
|    | 200|+		"DisableActiveQuery": function(id) { },
| 201| 201| 		GetEntityFlagMask: function(identifier) { },
| 202| 202| 	});
| 203| 203| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetEntityFlagMask' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 198| 198| 		EnableActiveQuery: function(id) { },
| 199| 199| 		ResetActiveQuery: function(id) { return [enemy]; },
| 200| 200| 		DisableActiveQuery: function(id) { },
| 201|    |-		GetEntityFlagMask: function(identifier) { },
|    | 201|+		"GetEntityFlagMask": function(identifier) { },
| 202| 202| 	});
| 203| 203| 
| 204| 204| 	AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCurrentTemplateName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 202| 202| 	});
| 203| 203| 
| 204| 204| 	AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
| 205|    |-		GetCurrentTemplateName: function(ent) { return "special/formations/line_closed"; },
|    | 205|+		"GetCurrentTemplateName": function(ent) { return "special/formations/line_closed"; },
| 206| 206| 	});
| 207| 207| 
| 208| 208| 	AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPlayerByID' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 206| 206| 	});
| 207| 207| 
| 208| 208| 	AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
| 209|    |-		GetPlayerByID: function(id) { return playerEntity; },
|    | 209|+		"GetPlayerByID": function(id) { return playerEntity; },
| 210| 210| 		GetNumPlayers: function() { return 2; },
| 211| 211| 	});
| 212| 212| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetNumPlayers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 207| 207| 
| 208| 208| 	AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
| 209| 209| 		GetPlayerByID: function(id) { return playerEntity; },
| 210|    |-		GetNumPlayers: function() { return 2; },
|    | 210|+		"GetNumPlayers": function() { return 2; },
| 211| 211| 	});
| 212| 212| 
| 213| 213| 	AddMock(SYSTEM_ENTITY, IID_ObstructionManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 215| 215| 	});
| 216| 216| 
| 217| 217| 	AddMock(playerEntity, IID_Player, {
| 218|    |-		IsAlly: function() { return false; },
|    | 218|+		"IsAlly": function() { return false; },
| 219| 219| 		IsEnemy: function() { return true; },
| 220| 220| 		GetEnemies: function() { return []; },
| 221| 221| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 216| 216| 
| 217| 217| 	AddMock(playerEntity, IID_Player, {
| 218| 218| 		IsAlly: function() { return false; },
| 219|    |-		IsEnemy: function() { return true; },
|    | 219|+		"IsEnemy": function() { return true; },
| 220| 220| 		GetEnemies: function() { return []; },
| 221| 221| 	});
| 222| 222| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetEnemies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 217| 217| 	AddMock(playerEntity, IID_Player, {
| 218| 218| 		IsAlly: function() { return false; },
| 219| 219| 		IsEnemy: function() { return true; },
| 220|    |-		GetEnemies: function() { return []; },
|    | 220|+		"GetEnemies": function() { return []; },
| 221| 221| 	});
| 222| 222| 
| 223| 223| 	// create units
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetClassesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 228| 228| 		var unitAI = ConstructComponent(unit + i, "UnitAI", { "FormationController": "false", "DefaultStance": "aggressive", "Controllable": "true" });
| 229| 229| 
| 230| 230| 		AddMock(unit + i, IID_Identity, {
| 231|    |-			GetClassesList: function() { return []; },
|    | 231|+			"GetClassesList": function() { return []; },
| 232| 232| 		});
| 233| 233| 
| 234| 234| 		AddMock(unit + i, IID_Ownership, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetOwner' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 232| 232| 		});
| 233| 233| 
| 234| 234| 		AddMock(unit + i, IID_Ownership, {
| 235|    |-			GetOwner: function() { return 1; },
|    | 235|+			"GetOwner": function() { return 1; },
| 236| 236| 		});
| 237| 237| 
| 238| 238| 		AddMock(unit + i, IID_Position, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTurretParent' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 236| 236| 		});
| 237| 237| 
| 238| 238| 		AddMock(unit + i, IID_Position, {
| 239|    |-			GetTurretParent: function() { return INVALID_ENTITY; },
|    | 239|+			"GetTurretParent": function() { return INVALID_ENTITY; },
| 240| 240| 			GetPosition: function() { return new Vector3D(); },
| 241| 241| 			GetPosition2D: function() { return new Vector2D(); },
| 242| 242| 			GetRotation: function() { return { "y": 0 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 237| 237| 
| 238| 238| 		AddMock(unit + i, IID_Position, {
| 239| 239| 			GetTurretParent: function() { return INVALID_ENTITY; },
| 240|    |-			GetPosition: function() { return new Vector3D(); },
|    | 240|+			"GetPosition": function() { return new Vector3D(); },
| 241| 241| 			GetPosition2D: function() { return new Vector2D(); },
| 242| 242| 			GetRotation: function() { return { "y": 0 }; },
| 243| 243| 			IsInWorld: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition2D' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 238| 238| 		AddMock(unit + i, IID_Position, {
| 239| 239| 			GetTurretParent: function() { return INVALID_ENTITY; },
| 240| 240| 			GetPosition: function() { return new Vector3D(); },
| 241|    |-			GetPosition2D: function() { return new Vector2D(); },
|    | 241|+			"GetPosition2D": function() { return new Vector2D(); },
| 242| 242| 			GetRotation: function() { return { "y": 0 }; },
| 243| 243| 			IsInWorld: function() { return true; },
| 244| 244| 		});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRotation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 239| 239| 			GetTurretParent: function() { return INVALID_ENTITY; },
| 240| 240| 			GetPosition: function() { return new Vector3D(); },
| 241| 241| 			GetPosition2D: function() { return new Vector2D(); },
| 242|    |-			GetRotation: function() { return { "y": 0 }; },
|    | 242|+			"GetRotation": function() { return { "y": 0 }; },
| 243| 243| 			IsInWorld: function() { return true; },
| 244| 244| 		});
| 245| 245| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsInWorld' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 240| 240| 			GetPosition: function() { return new Vector3D(); },
| 241| 241| 			GetPosition2D: function() { return new Vector2D(); },
| 242| 242| 			GetRotation: function() { return { "y": 0 }; },
| 243|    |-			IsInWorld: function() { return true; },
|    | 243|+			"IsInWorld": function() { return true; },
| 244| 244| 		});
| 245| 245| 
| 246| 246| 		AddMock(unit + i, IID_UnitMotion, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 252| 252| 		});
| 253| 253| 
| 254| 254| 		AddMock(unit + i, IID_Vision, {
| 255|    |-			GetRange: function() { return 10; },
|    | 255|+			"GetRange": function() { return 10; },
| 256| 256| 		});
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 256| 256| 		});
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259|    |-			GetRange: function() { return {"max":10, "min": 0}; },
|    | 259|+			"GetRange": function() { return {"max":10, "min": 0}; },
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 256| 256| 		});
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259|    |-			GetRange: function() { return {"max":10, "min": 0}; },
|    | 259|+			GetRange: function() { return { "max":10, "min": 0}; },
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'max'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 256| 256| 		});
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259|    |-			GetRange: function() { return {"max":10, "min": 0}; },
|    | 259|+			GetRange: function() { return {"max": 10, "min": 0}; },
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 256| 256| 		});
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259|    |-			GetRange: function() { return {"max":10, "min": 0}; },
|    | 259|+			GetRange: function() { return {"max":10, "min": 0 }; },
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetFullAttackRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259| 259| 			GetRange: function() { return {"max":10, "min": 0}; },
| 260|    |-			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
|    | 260|+			"GetFullAttackRange": function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 263| 263| 			CanAttack: function(v) { return true; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 257| 257| 
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259| 259| 			GetRange: function() { return {"max":10, "min": 0}; },
| 260|    |-			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
|    | 260|+			GetFullAttackRange: function() { return { "max": 40, "min": 0 }; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 263| 263| 			CanAttack: function(v) { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetBestAttackAgainst' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 258| 258| 		AddMock(unit + i, IID_Attack, {
| 259| 259| 			GetRange: function() { return {"max":10, "min": 0}; },
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261|    |-			GetBestAttackAgainst: function(t) { return "melee"; },
|    | 261|+			"GetBestAttackAgainst": function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 263| 263| 			CanAttack: function(v) { return true; },
| 264| 264| 			CompareEntitiesByPreference: function(a, b) { return 0; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTimers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 259| 259| 			GetRange: function() { return {"max":10, "min": 0}; },
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262|    |-			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
|    | 262|+			"GetTimers": function() { return { "prepare": 500, "repeat": 1000 }; },
| 263| 263| 			CanAttack: function(v) { return true; },
| 264| 264| 			CompareEntitiesByPreference: function(a, b) { return 0; },
| 265| 265| 		});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanAttack' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 260| 260| 			GetFullAttackRange: function() { return { "max": 40, "min": 0}; },
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 263|    |-			CanAttack: function(v) { return true; },
|    | 263|+			"CanAttack": function(v) { return true; },
| 264| 264| 			CompareEntitiesByPreference: function(a, b) { return 0; },
| 265| 265| 		});
| 266| 266| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CompareEntitiesByPreference' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 261| 261| 			GetBestAttackAgainst: function(t) { return "melee"; },
| 262| 262| 			GetTimers: function() { return { "prepare": 500, "repeat": 1000 }; },
| 263| 263| 			CanAttack: function(v) { return true; },
| 264|    |-			CompareEntitiesByPreference: function(a, b) { return 0; },
|    | 264|+			"CompareEntitiesByPreference": function(a, b) { return 0; },
| 265| 265| 		});
| 266| 266| 
| 267| 267| 		unitAI.OnCreate();
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 273| 273| 
| 274| 274| 	// create enemy
| 275| 275| 	AddMock(enemy, IID_Health, {
| 276|    |-		GetHitpoints: function() { return 40; },
|    | 276|+		"GetHitpoints": function() { return 40; },
| 277| 277| 	});
| 278| 278| 
| 279| 279| 	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 276| 276| 		GetHitpoints: function() { return 40; },
| 277| 277| 	});
| 278| 278| 
| 279|    |-	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
|    | 279|+	var controllerFormation = ConstructComponent(controller, "Formation", { "FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
| 280| 280| 	var controllerAI = ConstructComponent(controller, "UnitAI", { "FormationController": "true", "DefaultStance": "aggressive", "Controllable": "true" });
| 281| 281| 
| 282| 282| 	AddMock(controller, IID_Position, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 276| 276| 		GetHitpoints: function() { return 40; },
| 277| 277| 	});
| 278| 278| 
| 279|    |-	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0});
|    | 279|+	var controllerFormation = ConstructComponent(controller, "Formation", {"FormationName": "Line Closed", "FormationShape": "square", "ShiftRows": "false", "SortingClasses": "", "WidthDepthRatio": 1, "UnitSeparationWidthMultiplier": 1, "UnitSeparationDepthMultiplier": 1, "SpeedMultiplier": 1, "Sloppyness": 0 });
| 280| 280| 	var controllerAI = ConstructComponent(controller, "UnitAI", { "FormationController": "true", "DefaultStance": "aggressive", "Controllable": "true" });
| 281| 281| 
| 282| 282| 	AddMock(controller, IID_Position, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTurretParent' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 280| 280| 	var controllerAI = ConstructComponent(controller, "UnitAI", { "FormationController": "true", "DefaultStance": "aggressive", "Controllable": "true" });
| 281| 281| 
| 282| 282| 	AddMock(controller, IID_Position, {
| 283|    |-		GetTurretParent: function() { return INVALID_ENTITY; },
|    | 283|+		"GetTurretParent": function() { return INVALID_ENTITY; },
| 284| 284| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 285| 285| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 286| 286| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'JumpTo' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 281| 281| 
| 282| 282| 	AddMock(controller, IID_Position, {
| 283| 283| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 284|    |-		JumpTo: function(x, z) { this.x = x; this.z = z; },
|    | 284|+		"JumpTo": function(x, z) { this.x = x; this.z = z; },
| 285| 285| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 286| 286| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 287| 287| 		GetRotation: function() { return { "y": 0 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 282| 282| 	AddMock(controller, IID_Position, {
| 283| 283| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 284| 284| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 285|    |-		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
|    | 285|+		"GetPosition": function() { return new Vector3D(this.x, 0, this.z); },
| 286| 286| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 287| 287| 		GetRotation: function() { return { "y": 0 }; },
| 288| 288| 		IsInWorld: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition2D' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 283| 283| 		GetTurretParent: function() { return INVALID_ENTITY; },
| 284| 284| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 285| 285| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 286|    |-		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
|    | 286|+		"GetPosition2D": function() { return new Vector2D(this.x, this.z); },
| 287| 287| 		GetRotation: function() { return { "y": 0 }; },
| 288| 288| 		IsInWorld: function() { return true; },
| 289| 289| 	});
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRotation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 284| 284| 		JumpTo: function(x, z) { this.x = x; this.z = z; },
| 285| 285| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 286| 286| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 287|    |-		GetRotation: function() { return { "y": 0 }; },
|    | 287|+		"GetRotation": function() { return { "y": 0 }; },
| 288| 288| 		IsInWorld: function() { return true; },
| 289| 289| 	});
| 290| 290| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsInWorld' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 285| 285| 		GetPosition: function() { return new Vector3D(this.x, 0, this.z); },
| 286| 286| 		GetPosition2D: function() { return new Vector2D(this.x, this.z); },
| 287| 287| 		GetRotation: function() { return { "y": 0 }; },
| 288|    |-		IsInWorld: function() { return true; },
|    | 288|+		"IsInWorld": function() { return true; },
| 289| 289| 	});
| 290| 290| 
| 291| 291| 	AddMock(controller, IID_UnitMotion, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRange' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 297| 297| 	});
| 298| 298| 
| 299| 299| 	AddMock(controller, IID_Attack, {
| 300|    |-		GetRange: function() { return {"max":10, "min": 0}; },
|    | 300|+		"GetRange": function() { return {"max":10, "min": 0}; },
| 301| 301| 		CanAttackAsFormation: function() { return false; },
| 302| 302| 	});
| 303| 303| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 297| 297| 	});
| 298| 298| 
| 299| 299| 	AddMock(controller, IID_Attack, {
| 300|    |-		GetRange: function() { return {"max":10, "min": 0}; },
|    | 300|+		GetRange: function() { return { "max":10, "min": 0}; },
| 301| 301| 		CanAttackAsFormation: function() { return false; },
| 302| 302| 	});
| 303| 303| 
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'max'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 297| 297| 	});
| 298| 298| 
| 299| 299| 	AddMock(controller, IID_Attack, {
| 300|    |-		GetRange: function() { return {"max":10, "min": 0}; },
|    | 300|+		GetRange: function() { return {"max": 10, "min": 0}; },
| 301| 301| 		CanAttackAsFormation: function() { return false; },
| 302| 302| 	});
| 303| 303| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 297| 297| 	});
| 298| 298| 
| 299| 299| 	AddMock(controller, IID_Attack, {
| 300|    |-		GetRange: function() { return {"max":10, "min": 0}; },
|    | 300|+		GetRange: function() { return {"max":10, "min": 0 }; },
| 301| 301| 		CanAttackAsFormation: function() { return false; },
| 302| 302| 	});
| 303| 303| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanAttackAsFormation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 298| 298| 
| 299| 299| 	AddMock(controller, IID_Attack, {
| 300| 300| 		GetRange: function() { return {"max":10, "min": 0}; },
| 301|    |-		CanAttackAsFormation: function() { return false; },
|    | 301|+		"CanAttackAsFormation": function() { return false; },
| 302| 302| 	});
| 303| 303| 
| 304| 304| 	controllerAI.OnCreate();
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 310| 310| 	for (var ent of unitAIs)
| 311| 311| 		TS_ASSERT_EQUALS(unitAI.fsmStateName, "INDIVIDUAL.COMBAT.ATTACKING");
| 312| 312| 
| 313|    |-	controllerAI.MoveIntoFormation({"name": "Circle"});
|    | 313|+	controllerAI.MoveIntoFormation({ "name": "Circle"});
| 314| 314| 
| 315| 315| 	// let all units be in position
| 316| 316| 	for (var ent of unitAIs)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 310| 310| 	for (var ent of unitAIs)
| 311| 311| 		TS_ASSERT_EQUALS(unitAI.fsmStateName, "INDIVIDUAL.COMBAT.ATTACKING");
| 312| 312| 
| 313|    |-	controllerAI.MoveIntoFormation({"name": "Circle"});
|    | 313|+	controllerAI.MoveIntoFormation({"name": "Circle" });
| 314| 314| 
| 315| 315| 	// let all units be in position
| 316| 316| 	for (var ent of unitAIs)

binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
|  47| »   »   ResetActiveQuery:·function(id)·{·if·(mode·==·0)·return·[];·else·return·[enemy];·},
|    | [NORMAL] ESLintBear (brace-rules/brace-on-same-line):
|    | Closing curly brace appears on the same line as the subsequent block.

binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 224| »   for·(var·i·=·0;·i·<·unitCount;·i++)·{
|    | [NORMAL] ESLintBear (brace-rules/brace-on-same-line):
|    | Opening curly brace appears on the same line as controlling statement.

binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 316| »   for·(var·ent·of·unitAIs)
|    | [NORMAL] JSHintBear:
|    | 'ent' is already defined.

binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 319| »   for·(var·ent·of·unitAIs)
|    | [NORMAL] JSHintBear:
|    | 'ent' is already defined.

binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 311| »   »   TS_ASSERT_EQUALS(unitAI.fsmStateName,·"INDIVIDUAL.COMBAT.ATTACKING");
|    | [NORMAL] JSHintBear:
|    | 'unitAI' used out of scope.

binaries/data/mods/public/simulation/components/tests/test_UnitAI.js
| 320| »   »   TS_ASSERT_EQUALS(unitAI.fsmStateName,·"INDIVIDUAL.COMBAT.ATTACKING");
|    | [NORMAL] JSHintBear:
|    | 'unitAI' used out of scope.
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 537| 537| 			if (cmpGarrisonHolder)
| 538| 538| 			{
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541|    |-				    && player != +cmd.owner)
|    | 540|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 541|+				    player != +cmd.owner)
| 542| 542| 						continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540| 540| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541| 541| 				    && player != +cmd.owner)
| 542|    |-						continue;
|    | 542|+					continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 545| 545| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1162|1162| 
|1163|1163| 	// send Metadata info if any
|1164|1164| 	if (cmd.metadata)
|1165|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1165|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1166|1166| 
|1167|1167| 	// Tell the units to start building this new entity
|1168|1168| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1162|1162| 
|1163|1163| 	// send Metadata info if any
|1164|1164| 	if (cmd.metadata)
|1165|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1165|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1166|1166| 
|1167|1167| 	// Tell the units to start building this new entity
|1168|1168| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1162|1162| 
|1163|1163| 	// send Metadata info if any
|1164|1164| 	if (cmd.metadata)
|1165|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1165|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1166|1166| 
|1167|1167| 	// Tell the units to start building this new entity
|1168|1168| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1270|1270| 		}
|1271|1271| 
|1272|1272| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1273|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1273|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1274|1274| 	}
|1275|1275| 
|1276|1276| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1334|1334| 
|1335|1335| 				if (i > 0)
|1336|1336| 				{
|1337|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1337|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1338|1338| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1339|1339| 					// TODO: ensure that cmpPreviousObstruction exists
|1340|1340| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1497|1497| 		// Check that all its members are selected
|1498|1498| 		var fid = formationIds[0];
|1499|1499| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1500|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1501|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1500|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1501|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1502|1502| 		{
|1503|1503| 			cmpFormation.DeleteTwinFormations();
|1504|1504| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1605|1605| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1606|1606| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1607|1607| 				if (matrix[i][j] < distSq)
|1608|    |-					closeClusters = [i,j];
|    |1608|+					closeClusters = [i, j];
|1609|1609| 
|1610|1610| 		// if no more close clusters found, just return all found clusters so far
|1611|1611| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1627|1627| 		}
|1628|1628| 		// remove the rows and columns in the matrix for the merged clusters,
|1629|1629| 		// and the clusters themselves from the cluster list
|1630|    |-		clusters.splice(closeClusters[0],1);
|    |1630|+		clusters.splice(closeClusters[0], 1);
|1631|1631| 		clusters.splice(closeClusters[1],1);
|1632|1632| 		matrix.splice(closeClusters[0],1);
|1633|1633| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1628|1628| 		// remove the rows and columns in the matrix for the merged clusters,
|1629|1629| 		// and the clusters themselves from the cluster list
|1630|1630| 		clusters.splice(closeClusters[0],1);
|1631|    |-		clusters.splice(closeClusters[1],1);
|    |1631|+		clusters.splice(closeClusters[1], 1);
|1632|1632| 		matrix.splice(closeClusters[0],1);
|1633|1633| 		matrix.splice(closeClusters[1],1);
|1634|1634| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1629|1629| 		// and the clusters themselves from the cluster list
|1630|1630| 		clusters.splice(closeClusters[0],1);
|1631|1631| 		clusters.splice(closeClusters[1],1);
|1632|    |-		matrix.splice(closeClusters[0],1);
|    |1632|+		matrix.splice(closeClusters[0], 1);
|1633|1633| 		matrix.splice(closeClusters[1],1);
|1634|1634| 		for (let i = 0; i < matrix.length; ++i)
|1635|1635| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1630|1630| 		clusters.splice(closeClusters[0],1);
|1631|1631| 		clusters.splice(closeClusters[1],1);
|1632|1632| 		matrix.splice(closeClusters[0],1);
|1633|    |-		matrix.splice(closeClusters[1],1);
|    |1633|+		matrix.splice(closeClusters[1], 1);
|1634|1634| 		for (let i = 0; i < matrix.length; ++i)
|1635|1635| 		{
|1636|1636| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1634|1634| 		for (let i = 0; i < matrix.length; ++i)
|1635|1635| 		{
|1636|1636| 			if (matrix[i].length > closeClusters[0])
|1637|    |-				matrix[i].splice(closeClusters[0],1);
|    |1637|+				matrix[i].splice(closeClusters[0], 1);
|1638|1638| 			if (matrix[i].length > closeClusters[1])
|1639|1639| 				matrix[i].splice(closeClusters[1],1);
|1640|1640| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1636|1636| 			if (matrix[i].length > closeClusters[0])
|1637|1637| 				matrix[i].splice(closeClusters[0],1);
|1638|1638| 			if (matrix[i].length > closeClusters[1])
|1639|    |-				matrix[i].splice(closeClusters[1],1);
|    |1639|+				matrix[i].splice(closeClusters[1], 1);
|1640|1640| 		}
|1641|1641| 		// add a new row of distances to the matrix and the new cluster
|1642|1642| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 789| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1293| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1294| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1524| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1603| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1620| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1634| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 541| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 729| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 967| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 980| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1127| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1379| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1462| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1501| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1527| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1560| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 801| 801| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 802| 802| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 803| 803| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 804|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 804|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 805| 805| 	}
| 806| 806| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 807| 807| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1634|1634| 			{
|1635|1635| 				minDist2 = dist2;
|1636|1636| 				minDistEntitySnapData = {
|1637|    |-						"x": pos.x,
|    |1637|+					"x": pos.x,
|1638|1638| 						"z": pos.z,
|1639|1639| 						"angle": cmpPosition.GetRotation().y,
|1640|1640| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1635|1635| 				minDist2 = dist2;
|1636|1636| 				minDistEntitySnapData = {
|1637|1637| 						"x": pos.x,
|1638|    |-						"z": pos.z,
|    |1638|+					"z": pos.z,
|1639|1639| 						"angle": cmpPosition.GetRotation().y,
|1640|1640| 						"ent": ent
|1641|1641| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1636|1636| 				minDistEntitySnapData = {
|1637|1637| 						"x": pos.x,
|1638|1638| 						"z": pos.z,
|1639|    |-						"angle": cmpPosition.GetRotation().y,
|    |1639|+					"angle": cmpPosition.GetRotation().y,
|1640|1640| 						"ent": ent
|1641|1641| 				};
|1642|1642| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1637|1637| 						"x": pos.x,
|1638|1638| 						"z": pos.z,
|1639|1639| 						"angle": cmpPosition.GetRotation().y,
|1640|    |-						"ent": ent
|    |1640|+					"ent": ent
|1641|1641| 				};
|1642|1642| 			}
|1643|1643| 		}
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 759| 759| 					this.FinishOrder();
| 760| 760| 					return;
| 761| 761| 				}
| 762|    |-				else
| 763|    |-				{
|    | 762|+				
| 764| 763| 					this.SetNextState("GARRISON.APPROACHING");
| 765| 764| 					return;
| 766|    |-				}
|    | 765|+				
| 767| 766| 			}
| 768| 767| 
| 769| 768| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1027|1027| 			},
|1028|1028| 		},
|1029|1029| 
|1030|    |-		"GARRISON":{
|    |1030|+		"GARRISON": {
|1031|1031| 			"enter": function() {
|1032|1032| 				// If the garrisonholder should pickup, warn it so it can take needed action
|1033|1033| 				var cmpGarrisonHolder = Engine.QueryInterface(this.order.data.target, IID_GarrisonHolder);
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1976|1976| 
|1977|1977| 				"Attacked": function(msg) {
|1978|1978| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|1979|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|1980|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |1979|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |1980|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|1981|1981| 						this.RespondToTargetedEntities([msg.data.attacker]);
|1982|1982| 				},
|1983|1983| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2704|2704| 					{
|2705|2705| 						// The building was already finished/fully repaired before we arrived;
|2706|2706| 						// let the ConstructionFinished handler handle this.
|2707|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2707|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2708|2708| 						return true;
|2709|2709| 					}
|2710|2710| 
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3217|3217| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3218|3218| 
|3219|3219| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3220|    |-							// only used for domestic animals
|    |3220|+		// only used for domestic animals
|3221|3221| 	},
|3222|3222| };
|3223|3223| 
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3275|3275| 
|3276|3276| UnitAI.prototype.IsAnimal = function()
|3277|3277| {
|3278|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3278|+	return (!!this.template.NaturalBehaviour);
|3279|3279| };
|3280|3280| 
|3281|3281| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3405|3405| 		{
|3406|3406| 			let index = this.GetCurrentState().indexOf(".");
|3407|3407| 			if (index != -1)
|3408|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3408|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3409|3409| 			this.Stop(false);
|3410|3410| 		}
|3411|3411| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3461|3461| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3462|3462| 			continue;
|3463|3463| 		if (i == 0)
|3464|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3464|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3465|3465| 		else
|3466|3466| 			this.orderQueue.splice(i, 1);
|3467|3467| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3545|3545| };
|3546|3546| 
|3547|3547| 
|3548|    |-//// FSM linkage functions ////
|    |3548|+// // FSM linkage functions ////
|3549|3549| 
|3550|3550| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3551|3551| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3715|3715| 				continue;
|3716|3716| 			if (this.orderQueue[i].type == type)
|3717|3717| 				continue;
|3718|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3718|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3719|3719| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3720|3720| 			return;
|3721|3721| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, { "type": "Timer", "data": data, "lateness": lateness});
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3886|3886| 	if (data.timerRepeat === undefined)
|3887|3887| 		this.timer = undefined;
|3888|3888| 
|3889|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3889|+	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness });
|3890|3890| };
|3891|3891| 
|3892|3892| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, { "type": "ConstructionFinished", "data": msg});
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3931|3931| 	// TODO: This is a bit inefficient since every unit listens to every
|3932|3932| 	// construction message - ideally we could scope it to only the one we're building
|3933|3933| 
|3934|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3934|+	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg });
|3935|3935| };
|3936|3936| 
|3937|3937| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, { "type": "Attacked", "data": msg});
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnAttacked = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3959|+	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg });
|3960|3960| };
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, { "type": "GuardedAttacked", "data": msg.data});
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3961|3961| 
|3962|3962| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3963|3963| {
|3964|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3964|+	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data });
|3965|3965| };
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, { "type": "HealthChanged", "from": msg.from, "to": msg.to});
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3966|3966| 
|3967|3967| UnitAI.prototype.OnHealthChanged = function(msg)
|3968|3968| {
|3969|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3969|+	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to });
|3970|3970| };
|3971|3971| 
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, { "type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3972|3972| UnitAI.prototype.OnRangeUpdate = function(msg)
|3973|3973| {
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3975|+		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg });
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|3977| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, { "type": "LosHealRangeUpdate", "data": msg});
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3974|3974| 	if (msg.tag == this.losRangeQuery)
|3975|3975| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3976|3976| 	else if (msg.tag == this.losHealRangeQuery)
|3977|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3977|+		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg });
|3978|3978| };
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, { "type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3979|3979| 
|3980|3980| UnitAI.prototype.OnPackFinished = function(msg)
|3981|3981| {
|3982|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3982|+	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed });
|3983|3983| };
|3984|3984| 
|3985|3985| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3982|3982| 	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|3983|3983| };
|3984|3984| 
|3985|    |-//// Helper functions to be called by the FSM ////
|    |3985|+// // Helper functions to be called by the FSM ////
|3986|3986| 
|3987|3987| UnitAI.prototype.GetWalkSpeed = function()
|3988|3988| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4651|4651| UnitAI.prototype.AttackEntityInZone = function(ents)
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|    |-		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|    |4654|+		this.CanAttack(target) &&
|    |4655|+		this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|4656| 		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4652|4652| {
|4653|4653| 	var target = ents.find(target =>
|4654|4654| 		this.CanAttack(target)
|4655|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4656|    |-		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|    |4655|+		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|    |4656|+		(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4657|4657| 	);
|4658|4658| 	if (!target)
|4659|4659| 		return false;
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4716|4716| 	// If we are guarding/escorting, don't abandon as long as the guarded unit is in target range of the attacker
|4717|4717| 	if (this.isGuardOf)
|4718|4718| 	{
|4719|    |-		var cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4719|+		var cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4720|4720| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4721|4721| 		if (cmpUnitAI && cmpAttack &&
|4722|4722| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|4723|    |-				return false;
|    |4723|+			return false;
|4724|4724| 	}
|4725|4725| 
|4726|4726| 	// Stop if we're in hold-ground mode and it's too far from the holding point
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4758|4758| 	// If we are guarding/escorting, chase at least as long as the guarded unit is in target range of the attacker
|4759|4759| 	if (this.isGuardOf)
|4760|4760| 	{
|4761|    |-		let cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4761|+		let cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4762|4762| 		let cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4763|4763| 		if (cmpUnitAI && cmpAttack &&
|4764|4764| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4771|4771| 	return false;
|4772|4772| };
|4773|4773| 
|4774|    |-//// External interface functions ////
|    |4774|+// // External interface functions ////
|4775|4775| 
|4776|4776| UnitAI.prototype.SetFormationController = function(ent)
|4777|4777| {
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4927|4927| 	{
|4928|4928| 		if (this.isGuardOf == target && this.order && this.order.type == "Guard")
|4929|4929| 			return;
|4930|    |-		else
|4931|    |-			this.RemoveGuard();
|    |4930|+		this.RemoveGuard();
|4932|4931| 	}
|4933|4932| 
|4934|4933| 	this.AddOrder("Guard", { "target": target, "force": false }, queued);
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5259|5259| 	    this.workOrders.length && this.workOrders[0].type == "Trade")
|5260|5260| 	{
|5261|5261| 		let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|5262|    |-		if (cmpTrader.HasBothMarkets() && 
|    |5262|+		if (cmpTrader.HasBothMarkets() &&
|5263|5263| 		   (cmpTrader.GetFirstMarket() == target && cmpTrader.GetSecondMarket() == source ||
|5264|5264| 		    cmpTrader.GetFirstMarket() == source && cmpTrader.GetSecondMarket() == target))
|5265|5265| 		{
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5540|5540| 				{
|5541|5541| 					var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5542|5542| 					var targetClasses = this.order.data.targetClasses;
|5543|    |-					if (targetClasses.attack && cmpIdentity
|5544|    |-						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5543|+					if (targetClasses.attack && cmpIdentity &&
|    |5544|+						!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|5546| 					if (targetClasses.avoid && cmpIdentity
|5547|5547| 						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5543|5543| 					if (targetClasses.attack && cmpIdentity
|5544|5544| 						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5545|5545| 						continue;
|5546|    |-					if (targetClasses.avoid && cmpIdentity
|5547|    |-						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5546|+					if (targetClasses.avoid && cmpIdentity &&
|    |5547|+						MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5548|5548| 						continue;
|5549|5549| 					// Only used by the AIs to prevent some choices of targets
|5550|5550| 					if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5566|5566| 		{
|5567|5567| 			var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5568|5568| 			var targetClasses = this.order.data.targetClasses;
|5569|    |-			if (cmpIdentity && targetClasses.attack
|5570|    |-				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5569|+			if (cmpIdentity && targetClasses.attack &&
|    |5570|+				!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|5572| 			if (cmpIdentity && targetClasses.avoid
|5573|5573| 				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5569|5569| 			if (cmpIdentity && targetClasses.attack
|5570|5570| 				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5571|5571| 				continue;
|5572|    |-			if (cmpIdentity && targetClasses.avoid
|5573|    |-				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5572|+			if (cmpIdentity && targetClasses.avoid &&
|    |5573|+				MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5574|5574| 				continue;
|5575|5575| 			// Only used by the AIs to prevent some choices of targets
|5576|5576| 			if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = { "x": x, "z": z};
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5726|5726| 
|5727|5727| UnitAI.prototype.SetHeldPosition = function(x, z)
|5728|5728| {
|5729|    |-	this.heldPosition = {"x": x, "z": z};
|    |5729|+	this.heldPosition = {"x": x, "z": z };
|5730|5730| };
|5731|5731| 
|5732|5732| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5753|5753| 	return false;
|5754|5754| };
|5755|5755| 
|5756|    |-//// Helper functions ////
|    |5756|+// // Helper functions ////
|5757|5757| 
|5758|5758| UnitAI.prototype.CanAttack = function(target)
|5759|5759| {
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5957|5957| 	return cmpPack && cmpPack.IsPacking();
|5958|5958| };
|5959|5959| 
|5960|    |-//// Formation specific functions ////
|    |5960|+// // Formation specific functions ////
|5961|5961| 
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5962|5962| UnitAI.prototype.IsAttackingAsFormation = function()
|5963|5963| {
|5964|5964| 	var cmpAttack = Engine.QueryInterface(this.entity, IID_Attack);
|5965|    |-	return cmpAttack && cmpAttack.CanAttackAsFormation()
|5966|    |-		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    |5965|+	return cmpAttack && cmpAttack.CanAttackAsFormation() &&
|    |5966|+		this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|5969| //// Animal specific functions ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5966|5966| 		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5967|5967| };
|5968|5968| 
|5969|    |-//// Animal specific functions ////
|    |5969|+// // Animal specific functions ////
|5970|5970| 
|5971|5971| UnitAI.prototype.MoveRandomly = function(distance)
|5972|5972| {

binaries/data/mods/public/simulation/components/UnitAI.js
| 327| »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'Order.WalkToTarget' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
| 914| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 939| »   »   »   "enter":·function(msg)·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 989| »   »   »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'enter' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
|1052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1088| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1120| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1280| »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1337| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1512| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1534| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1566| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1720| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1770| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1848| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2025| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2141| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2416| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2449| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2555| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2621| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2660| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2871| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3052| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3791| »   var·isWorkType·=·type·=>·type·==·"Gather"·||·type·==·"Trade"·||·type·==·"Repair"·||·type·==·"ReturnResource";
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4638| »   var·target·=·ents.find(target·=>·this.CanAttack(target));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4653| »   var·target·=·ents.find(target·=>
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4699| »   var·ent·=·ents.find(ent·=>·this.CanHeal(ent));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4722| »   »   ····cmpAttack.GetAttackTypes().some(type·=>·cmpUnitAI.CheckTargetAttackRange(this.isGuardOf,·type)))
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|1980| »   »   »   »   »   »   &&·this.order.data.target·!=·msg.data.attacker·&&·this.GetBestAttackAgainst(msg.data.attacker,·true)·!=·"Capture")
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|3753| »   »   var·order·=·{·"type":·type,·"data":·data·};
|    | [NORMAL] JSHintBear:
|    | 'order' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|3822| »   for·(var·i·=·0;·i·<·this.orderQueue.length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|4655| »   »   &&·this.CheckTargetDistanceFromHeldPosition(target,·IID_Attack,·this.GetBestAttackAgainst(target,·true))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|4656| »   »   &&·(this.GetStance().respondChaseBeyondVision·||·this.CheckTargetIsInVisionRange(target))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5544| »   »   »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5547| »   »   »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5560| »   var·targets·=·this.GetTargetsFromUnit();
|    | [NORMAL] JSHintBear:
|    | 'targets' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5561| »   for·(var·targ·of·targets)
|    | [NORMAL] JSHintBear:
|    | 'targ' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5567| »   »   »   var·cmpIdentity·=·Engine.QueryInterface(targ,·IID_Identity);
|    | [NORMAL] JSHintBear:
|    | 'cmpIdentity' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5568| »   »   »   var·targetClasses·=·this.order.data.targetClasses;
|    | [NORMAL] JSHintBear:
|    | 'targetClasses' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5570| »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5573| »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5648| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5651| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5656| »   »   var·cmpRanged·=·Engine.QueryInterface(this.entity,·iid);
|    | [NORMAL] JSHintBear:
|    | 'cmpRanged' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5659| »   »   var·range·=·iid·!==·IID_Attack·?·cmpRanged.GetRange()·:·cmpRanged.GetFullAttackRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5660| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5670| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5673| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5966| »   »   &&·this.GetCurrentState()·==·"FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/729/display/redirect

Not necessarily, when a unit is not owned it can't be moved around, this patch allows any entity that is owned to be moved around, regardless of whether it is an animal or not.

So if I understand correctly, all units are now controllable? Is adding the <Controllable>true</Controllable> node then still necessary?

All units which are owned are controllable indeed, (except for the birds). This, however, also allows mods to script controllability (e.g. a demoralised unit becomes uncontrollable or some wandering townspeople that you may select but are not allowed to give orders).

In D1960#95830, @Nescio wrote:

So if I understand correctly, all units are now controllable? Is adding the <Controllable>true</Controllable> node then still necessary?

We can keep it iso with existing code by adding some <False> but I don't really see the point.

template_bird.xml is not an unit.
How about structures? Those have neither <Controllable>false</Controllable> nor <Controllable>true</Controllable>? I know structures can't move, but they still can get orders (attack, set rally point, ungarrison)?

That is why I had it in Identity at first ;)

In D1960#95838, @Nescio wrote:

template_bird.xml is not an unit.
How about structures? Those have neither <Controllable>false</Controllable> nor <Controllable>true</Controllable>? I know structures can't move, but they still can get orders (attack, set rally point, ungarrison)?

They don't have UnitAI, so they can't be ordered. Rally points aren't orders. Ungarrisoning could be close but atm it's not really implemented such.
BuildingAI explicitly doesn't allow the player to control stuff.

Thanks for the clarifications!

Stan added a comment.Sep 17 2019, 10:14 AM

I guess I may sound a bit weird, but thinking about it I think the comments should say can't move instead of can't walk, because units can run, and not all objects that are turrets can walk, (Just a semantic issue no more no less)

Good point! (e.g. “walking ships”)

Are the comments even necessary?

They don't have UnitAI, so they can't be ordered. Rally points aren't orders. Ungarrisoning could be close but atm it's not really implemented such.
BuildingAI explicitly doesn't allow the player to control stuff.

Unit creation, tech researching are also orders?

Freagarach updated this revision to Diff 9948.Sep 23 2019, 4:46 PM
Freagarach retitled this revision from Move the controllability of an entity from "UnitAI.js" to "Commands.js" and untie it from whether the entity is an animal. to Move the controllability of an entity to a component..
Freagarach edited the summary of this revision. (Show Details)

Something like this, @wraitii?

Freagarach retitled this revision from Move the controllability of an entity to a component. to [WIP] - Move the controllability of an entity to a component..Sep 23 2019, 4:47 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/307/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...

binaries/data/mods/public/simulation/components/Controllability.js
|  82| »   »   »   »   »   this.ControllableByComponent[IID][orderType];
|    | [NORMAL] ESLintBear (no-unused-expressions):
|    | Expected an assignment or function call and instead saw an expression.

binaries/data/mods/public/simulation/components/Controllability.js
|  82| »   »   »   »   »   this.ControllableByComponent[IID][orderType];
|    | [NORMAL] JSHintBear:
|    | Expected an assignment or function call and instead saw an expression.
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 537| 537| 			if (cmpGarrisonHolder)
| 538| 538| 			{
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541|    |-				    && player != +cmd.owner)
|    | 540|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 541|+				    player != +cmd.owner)
| 542| 542| 						continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 539| 539| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 540| 540| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 541| 541| 				    && player != +cmd.owner)
| 542|    |-						continue;
|    | 542|+					continue;
| 543| 543| 
| 544| 544| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 545| 545| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1143|1143| 
|1144|1144| 	// send Metadata info if any
|1145|1145| 	if (cmd.metadata)
|1146|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1146|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1147|1147| 
|1148|1148| 	// Tell the units to start building this new entity
|1149|1149| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1143|1143| 
|1144|1144| 	// send Metadata info if any
|1145|1145| 	if (cmd.metadata)
|1146|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1146|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1147|1147| 
|1148|1148| 	// Tell the units to start building this new entity
|1149|1149| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1143|1143| 
|1144|1144| 	// send Metadata info if any
|1145|1145| 	if (cmd.metadata)
|1146|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1146|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1147|1147| 
|1148|1148| 	// Tell the units to start building this new entity
|1149|1149| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1251|1251| 		}
|1252|1252| 
|1253|1253| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1254|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1254|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1255|1255| 	}
|1256|1256| 
|1257|1257| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1315|1315| 
|1316|1316| 				if (i > 0)
|1317|1317| 				{
|1318|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1318|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1319|1319| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1320|1320| 					// TODO: ensure that cmpPreviousObstruction exists
|1321|1321| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1478|1478| 		// Check that all its members are selected
|1479|1479| 		var fid = formationIds[0];
|1480|1480| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1481|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1482|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1481|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1482|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1483|1483| 		{
|1484|1484| 			cmpFormation.DeleteTwinFormations();
|1485|1485| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1586|1586| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1587|1587| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1588|1588| 				if (matrix[i][j] < distSq)
|1589|    |-					closeClusters = [i,j];
|    |1589|+					closeClusters = [i, j];
|1590|1590| 
|1591|1591| 		// if no more close clusters found, just return all found clusters so far
|1592|1592| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1608|1608| 		}
|1609|1609| 		// remove the rows and columns in the matrix for the merged clusters,
|1610|1610| 		// and the clusters themselves from the cluster list
|1611|    |-		clusters.splice(closeClusters[0],1);
|    |1611|+		clusters.splice(closeClusters[0], 1);
|1612|1612| 		clusters.splice(closeClusters[1],1);
|1613|1613| 		matrix.splice(closeClusters[0],1);
|1614|1614| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1609|1609| 		// remove the rows and columns in the matrix for the merged clusters,
|1610|1610| 		// and the clusters themselves from the cluster list
|1611|1611| 		clusters.splice(closeClusters[0],1);
|1612|    |-		clusters.splice(closeClusters[1],1);
|    |1612|+		clusters.splice(closeClusters[1], 1);
|1613|1613| 		matrix.splice(closeClusters[0],1);
|1614|1614| 		matrix.splice(closeClusters[1],1);
|1615|1615| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1610|1610| 		// and the clusters themselves from the cluster list
|1611|1611| 		clusters.splice(closeClusters[0],1);
|1612|1612| 		clusters.splice(closeClusters[1],1);
|1613|    |-		matrix.splice(closeClusters[0],1);
|    |1613|+		matrix.splice(closeClusters[0], 1);
|1614|1614| 		matrix.splice(closeClusters[1],1);
|1615|1615| 		for (let i = 0; i < matrix.length; ++i)
|1616|1616| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1611|1611| 		clusters.splice(closeClusters[0],1);
|1612|1612| 		clusters.splice(closeClusters[1],1);
|1613|1613| 		matrix.splice(closeClusters[0],1);
|1614|    |-		matrix.splice(closeClusters[1],1);
|    |1614|+		matrix.splice(closeClusters[1], 1);
|1615|1615| 		for (let i = 0; i < matrix.length; ++i)
|1616|1616| 		{
|1617|1617| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1615|1615| 		for (let i = 0; i < matrix.length; ++i)
|1616|1616| 		{
|1617|1617| 			if (matrix[i].length > closeClusters[0])
|1618|    |-				matrix[i].splice(closeClusters[0],1);
|    |1618|+				matrix[i].splice(closeClusters[0], 1);
|1619|1619| 			if (matrix[i].length > closeClusters[1])
|1620|1620| 				matrix[i].splice(closeClusters[1],1);
|1621|1621| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1617|1617| 			if (matrix[i].length > closeClusters[0])
|1618|1618| 				matrix[i].splice(closeClusters[0],1);
|1619|1619| 			if (matrix[i].length > closeClusters[1])
|1620|    |-				matrix[i].splice(closeClusters[1],1);
|    |1620|+				matrix[i].splice(closeClusters[1], 1);
|1621|1621| 		}
|1622|1622| 		// add a new row of distances to the matrix and the new cluster
|1623|1623| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 789| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1274| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1275| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1505| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1584| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1601| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1615| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 541| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 729| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 948| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 961| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1108| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1360| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1443| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1482| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1508| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1541| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/822/display/redirect

TBH I think you've over-engineered it. What's 'Order', what's 'Main' ?
I think you don't need to make something so generic. Just have 'deletable' and 'orderable' for now and handle everything from there.

Freagarach updated this revision to Diff 9986.Sep 27 2019, 9:45 PM
Freagarach retitled this revision from [WIP] - Move the controllability of an entity to a component. to Move the controllability of an entity to a component..
Freagarach edited the summary of this revision. (Show Details)
Freagarach edited the test plan for this revision. (Show Details)
  • Simplification.
  • Use cases.

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/850/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/335/display/redirect

Freagarach added inline comments.Sep 27 2019, 10:31 PM
binaries/data/mods/public/simulation/components/Capturable.js
165–172 ↗(On Diff #9986)

This sounds expensive, too expensive.
We only need to change if the cp crosses a point.

Nescio removed a subscriber: Nescio.Sep 27 2019, 10:34 PM
Freagarach added inline comments.Nov 23 2019, 9:31 AM
binaries/data/mods/public/simulation/components/Controllability.js
23

Lower case.

Stan added inline comments.Nov 23 2019, 9:45 AM
binaries/data/mods/public/simulation/components/Capturable.js
165–172 ↗(On Diff #9986)

Well you could cache the health / 2 value. Either in this scope or globally and update on modification changed.

So it's not computed twice at each check.

You could also try getting the value to see if it's worth changing.

Also what if it's equal ?

If one case handled both you could use a ternary.

binaries/data/mods/public/simulation/components/Controllability.js
38

When is there not type ?

binaries/data/mods/public/simulation/helpers/Commands.js
873

Check ?

Freagarach added inline comments.Nov 25 2019, 10:55 AM
binaries/data/mods/public/simulation/components/Capturable.js
165–172 ↗(On Diff #9986)

This should probably be called within the Controllability-component as well.

Freagarach updated this revision to Diff 10502.Dec 7 2019, 10:37 AM
Freagarach marked 3 inline comments as done.

Moved deletable check from "Capturable.js` to Controllability.js.

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (comma-spacing):
|    | There should be no space before ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_Capturable.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_Capturable.js
|  98|  98| 
|  99|  99| // Tests if the message is sent when capture points change
| 100| 100| testCapturable(testData, cmpCapturable => {
| 101|    |-	cmpCapturable.SetCapturePoints([0, 2000, 0 , 1000]);
|    | 101|+	cmpCapturable.SetCapturePoints([0, 2000, 0, 1000]);
| 102| 102| 	TS_ASSERT_UNEVAL_EQUALS(cmpCapturable.GetCapturePoints(), [0, 2000, 0, 1000]);
| 103| 103| 	Engine.PostMessage = function(ent, iid, message)
| 104| 104| 	{

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
|  25| function·testCapturable(testData,·test_function)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
| 132| function·testRegen(testData,·cpIn,·cpOut,·regenerating)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
| 157| function·testDecay(testData,·cpIn,·cpOut)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
| 176| function·testReduce(testData,·amount,·player,·taken)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Capturable.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Capturable.js
|  18|  18| 	this.cp = [];
|  19|  19| };
|  20|  20| 
|  21|    |-//// Interface functions ////
|    |  21|+// // Interface functions ////
|  22|  22| 
|  23|  23| /**
|  24|  24|  * Returns the current capture points array
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Capturable.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Capturable.js
| 145| 145| 	return sourceEnemyCp > 0;
| 146| 146| };
| 147| 147| 
| 148|    |-//// Private functions ////
|    | 148|+// // Private functions ////
| 149| 149| 
| 150| 150| /**
| 151| 151|  * This has to be called whenever the capture points are changed.
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Capturable.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Capturable.js
| 261| 261| 	Engine.PostMessage(this.entity, MT_CaptureRegenStateChanged, { "regenerating": true, "regenRate": regenRate, "territoryDecay": decay });
| 262| 262| };
| 263| 263| 
| 264|    |-//// Message Listeners ////
|    | 264|+// // Message Listeners ////
| 265| 265| 
| 266| 266| Capturable.prototype.OnValueModification = function(msg)
| 267| 267| {

binaries/data/mods/public/simulation/components/Capturable.js
| 193| »   »   var·garrisonRegenRate·=·0;
|    | [NORMAL] JSHintBear:
|    | 'garrisonRegenRate' is already defined.

binaries/data/mods/public/simulation/components/Capturable.js
| 195| »   return·regenRate·+·garrisonRegenRate;
|    | [NORMAL] JSHintBear:
|    | 'garrisonRegenRate' used out of scope.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  49|  49| 	"GetResource": resource => ({
|  50|  50| 		"aiAnalysisInfluenceGroup":
|  51|  51| 			resource == "food" ? "ignore" :
|  52|    |-			resource == "wood" ? "abundant" : "sparse"
|    |  52|+				resource == "wood" ? "abundant" : "sparse"
|  53|  53| 	})
|  54|  54| };
|  55|  55| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPrices' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  57|  57| 
|  58|  58| 
|  59|  59| AddMock(SYSTEM_ENTITY, IID_Barter, {
|  60|    |-	GetPrices: function() {
|    |  60|+	"GetPrices": function() {
|  61|  61| 		return {
|  62|  62| 			"buy": { "food": 150 },
|  63|  63| 			"sell": { "food": 25 }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'PlayerHasMarket' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  63|  63| 			"sell": { "food": 25 }
|  64|  64| 		};
|  65|  65| 	},
|  66|    |-	PlayerHasMarket: function () { return false; }
|    |  66|+	"PlayerHasMarket": function () { return false; }
|  67|  67| });
|  68|  68| 
|  69|  69| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|    | [NORMAL] ESLintBear (space-before-function-paren):
|    | Unexpected space before function parentheses.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  63|  63| 			"sell": { "food": 25 }
|  64|  64| 		};
|  65|  65| 	},
|  66|    |-	PlayerHasMarket: function () { return false; }
|    |  66|+	PlayerHasMarket: function() { return false; }
|  67|  67| });
|  68|  68| 
|  69|  69| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetVictoryConditions' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  67|  67| });
|  68|  68| 
|  69|  69| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|  70|    |-	GetVictoryConditions: () => ["conquest", "wonder"],
|    |  70|+	"GetVictoryConditions": () => ["conquest", "wonder"],
|  71|  71| 	GetAlliedVictory: function() { return false; }
|  72|  72| });
|  73|  73| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetAlliedVictory' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  68|  68| 
|  69|  69| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|  70|  70| 	GetVictoryConditions: () => ["conquest", "wonder"],
|  71|    |-	GetAlliedVictory: function() { return false; }
|    |  71|+	"GetAlliedVictory": function() { return false; }
|  72|  72| });
|  73|  73| 
|  74|  74| AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetNumPlayers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  72|  72| });
|  73|  73| 
|  74|  74| AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|  75|    |-	GetNumPlayers: function() { return 2; },
|    |  75|+	"GetNumPlayers": function() { return 2; },
|  76|  76| 	GetPlayerByID: function(id) { TS_ASSERT(id === 0 || id === 1); return 100+id; }
|  77|  77| });
|  78|  78| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPlayerByID' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  73|  73| 
|  74|  74| AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|  75|  75| 	GetNumPlayers: function() { return 2; },
|  76|    |-	GetPlayerByID: function(id) { TS_ASSERT(id === 0 || id === 1); return 100+id; }
|    |  76|+	"GetPlayerByID": function(id) { TS_ASSERT(id === 0 || id === 1); return 100+id; }
|  77|  77| });
|  78|  78| 
|  79|  79| AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLosVisibility' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  77|  77| });
|  78|  78| 
|  79|  79| AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|  80|    |-	GetLosVisibility: function(ent, player) { return "visible"; },
|    |  80|+	"GetLosVisibility": function(ent, player) { return "visible"; },
|  81|  81| 	GetLosCircular: function() { return false; }
|  82|  82| });
|  83|  83| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLosCircular' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  78|  78| 
|  79|  79| AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|  80|  80| 	GetLosVisibility: function(ent, player) { return "visible"; },
|  81|    |-	GetLosCircular: function() { return false; }
|    |  81|+	"GetLosCircular": function() { return false; }
|  82|  82| });
|  83|  83| 
|  84|  84| AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCurrentTemplateName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  82|  82| });
|  83|  83| 
|  84|  84| AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|  85|    |-	GetCurrentTemplateName: function(ent) { return "example"; },
|    |  85|+	"GetCurrentTemplateName": function(ent) { return "example"; },
|  86|  86| 	GetTemplate: function(name) { return ""; }
|  87|  87| });
|  88|  88| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTemplate' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  83|  83| 
|  84|  84| AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|  85|  85| 	GetCurrentTemplateName: function(ent) { return "example"; },
|  86|    |-	GetTemplate: function(name) { return ""; }
|    |  86|+	"GetTemplate": function(name) { return ""; }
|  87|  87| });
|  88|  88| 
|  89|  89| AddMock(SYSTEM_ENTITY, IID_Timer, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTime' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  87|  87| });
|  88|  88| 
|  89|  89| AddMock(SYSTEM_ENTITY, IID_Timer, {
|  90|    |-	GetTime: function() { return 0; },
|    |  90|+	"GetTime": function() { return 0; },
|  91|  91| 	SetTimeout: function(ent, iid, funcname, time, data) { return 0; }
|  92|  92| });
|  93|  93| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'SetTimeout' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  88|  88| 
|  89|  89| AddMock(SYSTEM_ENTITY, IID_Timer, {
|  90|  90| 	GetTime: function() { return 0; },
|  91|    |-	SetTimeout: function(ent, iid, funcname, time, data) { return 0; }
|    |  91|+	"SetTimeout": function(ent, iid, funcname, time, data) { return 0; }
|  92|  92| });
|  93|  93| 
|  94|  94| AddMock(100, IID_Player, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  92|  92| });
|  93|  93| 
|  94|  94| AddMock(100, IID_Player, {
|  95|    |-	GetName: function() { return "Player 1"; },
|    |  95|+	"GetName": function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|  97| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCiv' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  93|  93| 
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|    |-	GetCiv: function() { return "gaia"; },
|    |  96|+	"GetCiv": function() { return "gaia"; },
|  97|  97| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetColor' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  97|+	"GetColor": function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  97|+	GetColor: function() { return { "r": 1, g: 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  97|+	GetColor: function() { return { r: 1, "g": 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  97|+	GetColor: function() { return { r: 1, g: 1, "b": 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  97|+	GetColor: function() { return { r: 1, g: 1, b: 1, "a": 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| AddMock(100, IID_Player, {
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  97|+	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1 }; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanControlAllUnits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| 	GetName: function() { return "Player 1"; },
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|  97| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  98|    |-	CanControlAllUnits: function() { return false; },
|    |  98|+	"CanControlAllUnits": function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
| 101| 101| 	GetMaxPopulation: function() { return 200; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  96|  96| 	GetCiv: function() { return "gaia"; },
|  97|  97| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|    |-	GetPopulationCount: function() { return 10; },
|    |  99|+	"GetPopulationCount": function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
| 101| 101| 	GetMaxPopulation: function() { return 200; },
| 102| 102| 	GetResourceCounts: function() { return { food: 100 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  97|  97| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100|    |-	GetPopulationLimit: function() { return 20; },
|    | 100|+	"GetPopulationLimit": function() { return 20; },
| 101| 101| 	GetMaxPopulation: function() { return 200; },
| 102| 102| 	GetResourceCounts: function() { return { food: 100 }; },
| 103| 103| 	GetPanelEntities: function() { return []; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetMaxPopulation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  98|  98| 	CanControlAllUnits: function() { return false; },
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
| 101|    |-	GetMaxPopulation: function() { return 200; },
|    | 101|+	"GetMaxPopulation": function() { return 200; },
| 102| 102| 	GetResourceCounts: function() { return { food: 100 }; },
| 103| 103| 	GetPanelEntities: function() { return []; },
| 104| 104| 	IsTrainingBlocked: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetResourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
| 101| 101| 	GetMaxPopulation: function() { return 200; },
| 102|    |-	GetResourceCounts: function() { return { food: 100 }; },
|    | 102|+	"GetResourceCounts": function() { return { food: 100 }; },
| 103| 103| 	GetPanelEntities: function() { return []; },
| 104| 104| 	IsTrainingBlocked: function() { return false; },
| 105| 105| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  99|  99| 	GetPopulationCount: function() { return 10; },
| 100| 100| 	GetPopulationLimit: function() { return 20; },
| 101| 101| 	GetMaxPopulation: function() { return 200; },
| 102|    |-	GetResourceCounts: function() { return { food: 100 }; },
|    | 102|+	GetResourceCounts: function() { return { "food": 100 }; },
| 103| 103| 	GetPanelEntities: function() { return []; },
| 104| 104| 	IsTrainingBlocked: function() { return false; },
| 105| 105| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPanelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 100| 100| 	GetPopulationLimit: function() { return 20; },
| 101| 101| 	GetMaxPopulation: function() { return 200; },
| 102| 102| 	GetResourceCounts: function() { return { food: 100 }; },
| 103|    |-	GetPanelEntities: function() { return []; },
|    | 103|+	"GetPanelEntities": function() { return []; },
| 104| 104| 	IsTrainingBlocked: function() { return false; },
| 105| 105| 	GetState: function() { return "active"; },
| 106| 106| 	GetTeam: function() { return -1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsTrainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 101| 101| 	GetMaxPopulation: function() { return 200; },
| 102| 102| 	GetResourceCounts: function() { return { food: 100 }; },
| 103| 103| 	GetPanelEntities: function() { return []; },
| 104|    |-	IsTrainingBlocked: function() { return false; },
|    | 104|+	"IsTrainingBlocked": function() { return false; },
| 105| 105| 	GetState: function() { return "active"; },
| 106| 106| 	GetTeam: function() { return -1; },
| 107| 107| 	GetLockTeams: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetState' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 102| 102| 	GetResourceCounts: function() { return { food: 100 }; },
| 103| 103| 	GetPanelEntities: function() { return []; },
| 104| 104| 	IsTrainingBlocked: function() { return false; },
| 105|    |-	GetState: function() { return "active"; },
|    | 105|+	"GetState": function() { return "active"; },
| 106| 106| 	GetTeam: function() { return -1; },
| 107| 107| 	GetLockTeams: function() { return false; },
| 108| 108| 	GetCheatsEnabled: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTeam' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 103| 103| 	GetPanelEntities: function() { return []; },
| 104| 104| 	IsTrainingBlocked: function() { return false; },
| 105| 105| 	GetState: function() { return "active"; },
| 106|    |-	GetTeam: function() { return -1; },
|    | 106|+	"GetTeam": function() { return -1; },
| 107| 107| 	GetLockTeams: function() { return false; },
| 108| 108| 	GetCheatsEnabled: function() { return false; },
| 109| 109| 	GetDiplomacy: function() { return [-1, 1]; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLockTeams' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 104| 104| 	IsTrainingBlocked: function() { return false; },
| 105| 105| 	GetState: function() { return "active"; },
| 106| 106| 	GetTeam: function() { return -1; },
| 107|    |-	GetLockTeams: function() { return false; },
|    | 107|+	"GetLockTeams": function() { return false; },
| 108| 108| 	GetCheatsEnabled: function() { return false; },
| 109| 109| 	GetDiplomacy: function() { return [-1, 1]; },
| 110| 110| 	IsAlly: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 105| 105| 	GetState: function() { return "active"; },
| 106| 106| 	GetTeam: function() { return -1; },
| 107| 107| 	GetLockTeams: function() { return false; },
| 108|    |-	GetCheatsEnabled: function() { return false; },
|    | 108|+	"GetCheatsEnabled": function() { return false; },
| 109| 109| 	GetDiplomacy: function() { return [-1, 1]; },
| 110| 110| 	IsAlly: function() { return false; },
| 111| 111| 	IsMutualAlly: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDiplomacy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 106| 106| 	GetTeam: function() { return -1; },
| 107| 107| 	GetLockTeams: function() { return false; },
| 108| 108| 	GetCheatsEnabled: function() { return false; },
| 109|    |-	GetDiplomacy: function() { return [-1, 1]; },
|    | 109|+	"GetDiplomacy": function() { return [-1, 1]; },
| 110| 110| 	IsAlly: function() { return false; },
| 111| 111| 	IsMutualAlly: function() { return false; },
| 112| 112| 	IsNeutral: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 107| 107| 	GetLockTeams: function() { return false; },
| 108| 108| 	GetCheatsEnabled: function() { return false; },
| 109| 109| 	GetDiplomacy: function() { return [-1, 1]; },
| 110|    |-	IsAlly: function() { return false; },
|    | 110|+	"IsAlly": function() { return false; },
| 111| 111| 	IsMutualAlly: function() { return false; },
| 112| 112| 	IsNeutral: function() { return false; },
| 113| 113| 	IsEnemy: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 108| 108| 	GetCheatsEnabled: function() { return false; },
| 109| 109| 	GetDiplomacy: function() { return [-1, 1]; },
| 110| 110| 	IsAlly: function() { return false; },
| 111|    |-	IsMutualAlly: function() { return false; },
|    | 111|+	"IsMutualAlly": function() { return false; },
| 112| 112| 	IsNeutral: function() { return false; },
| 113| 113| 	IsEnemy: function() { return true; },
| 114| 114| 	GetDisabledTemplates: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 109| 109| 	GetDiplomacy: function() { return [-1, 1]; },
| 110| 110| 	IsAlly: function() { return false; },
| 111| 111| 	IsMutualAlly: function() { return false; },
| 112|    |-	IsNeutral: function() { return false; },
|    | 112|+	"IsNeutral": function() { return false; },
| 113| 113| 	IsEnemy: function() { return true; },
| 114| 114| 	GetDisabledTemplates: function() { return {}; },
| 115| 115| 	GetDisabledTechnologies: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 110| 110| 	IsAlly: function() { return false; },
| 111| 111| 	IsMutualAlly: function() { return false; },
| 112| 112| 	IsNeutral: function() { return false; },
| 113|    |-	IsEnemy: function() { return true; },
|    | 113|+	"IsEnemy": function() { return true; },
| 114| 114| 	GetDisabledTemplates: function() { return {}; },
| 115| 115| 	GetDisabledTechnologies: function() { return {}; },
| 116| 116| 	GetSpyCostMultiplier: function() { return 1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 111| 111| 	IsMutualAlly: function() { return false; },
| 112| 112| 	IsNeutral: function() { return false; },
| 113| 113| 	IsEnemy: function() { return true; },
| 114|    |-	GetDisabledTemplates: function() { return {}; },
|    | 114|+	"GetDisabledTemplates": function() { return {}; },
| 115| 115| 	GetDisabledTechnologies: function() { return {}; },
| 116| 116| 	GetSpyCostMultiplier: function() { return 1; },
| 117| 117| 	HasSharedDropsites: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 112| 112| 	IsNeutral: function() { return false; },
| 113| 113| 	IsEnemy: function() { return true; },
| 114| 114| 	GetDisabledTemplates: function() { return {}; },
| 115|    |-	GetDisabledTechnologies: function() { return {}; },
|    | 115|+	"GetDisabledTechnologies": function() { return {}; },
| 116| 116| 	GetSpyCostMultiplier: function() { return 1; },
| 117| 117| 	HasSharedDropsites: function() { return false; },
| 118| 118| 	HasSharedLos: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSpyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 113| 113| 	IsEnemy: function() { return true; },
| 114| 114| 	GetDisabledTemplates: function() { return {}; },
| 115| 115| 	GetDisabledTechnologies: function() { return {}; },
| 116|    |-	GetSpyCostMultiplier: function() { return 1; },
|    | 116|+	"GetSpyCostMultiplier": function() { return 1; },
| 117| 117| 	HasSharedDropsites: function() { return false; },
| 118| 118| 	HasSharedLos: function() { return false; }
| 119| 119| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 114| 114| 	GetDisabledTemplates: function() { return {}; },
| 115| 115| 	GetDisabledTechnologies: function() { return {}; },
| 116| 116| 	GetSpyCostMultiplier: function() { return 1; },
| 117|    |-	HasSharedDropsites: function() { return false; },
|    | 117|+	"HasSharedDropsites": function() { return false; },
| 118| 118| 	HasSharedLos: function() { return false; }
| 119| 119| });
| 120| 120| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 115| 115| 	GetDisabledTechnologies: function() { return {}; },
| 116| 116| 	GetSpyCostMultiplier: function() { return 1; },
| 117| 117| 	HasSharedDropsites: function() { return false; },
| 118|    |-	HasSharedLos: function() { return false; }
|    | 118|+	"HasSharedLos": function() { return false; }
| 119| 119| });
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 119| 119| });
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122|    |-	GetLimits: function() { return {"Foo": 10}; },
|    | 122|+	"GetLimits": function() { return {"Foo": 10}; },
| 123| 123| 	GetCounts: function() { return {"Foo": 5}; },
| 124| 124| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 125| 125| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 119| 119| });
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122|    |-	GetLimits: function() { return {"Foo": 10}; },
|    | 122|+	GetLimits: function() { return { "Foo": 10}; },
| 123| 123| 	GetCounts: function() { return {"Foo": 5}; },
| 124| 124| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 125| 125| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 119| 119| });
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122|    |-	GetLimits: function() { return {"Foo": 10}; },
|    | 122|+	GetLimits: function() { return {"Foo": 10 }; },
| 123| 123| 	GetCounts: function() { return {"Foo": 5}; },
| 124| 124| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 125| 125| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122| 122| 	GetLimits: function() { return {"Foo": 10}; },
| 123|    |-	GetCounts: function() { return {"Foo": 5}; },
|    | 123|+	"GetCounts": function() { return {"Foo": 5}; },
| 124| 124| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 125| 125| });
| 126| 126| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122| 122| 	GetLimits: function() { return {"Foo": 10}; },
| 123|    |-	GetCounts: function() { return {"Foo": 5}; },
|    | 123|+	GetCounts: function() { return { "Foo": 5}; },
| 124| 124| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 125| 125| });
| 126| 126| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 120| 120| 
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122| 122| 	GetLimits: function() { return {"Foo": 10}; },
| 123|    |-	GetCounts: function() { return {"Foo": 5}; },
|    | 123|+	GetCounts: function() { return {"Foo": 5 }; },
| 124| 124| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 125| 125| });
| 126| 126| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122| 122| 	GetLimits: function() { return {"Foo": 10}; },
| 123| 123| 	GetCounts: function() { return {"Foo": 5}; },
| 124|    |-	GetLimitChangers: function() {return {"Foo": {}}; }
|    | 124|+	"GetLimitChangers": function() {return {"Foo": {}}; }
| 125| 125| });
| 126| 126| 
| 127| 127| AddMock(100, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122| 122| 	GetLimits: function() { return {"Foo": 10}; },
| 123| 123| 	GetCounts: function() { return {"Foo": 5}; },
| 124|    |-	GetLimitChangers: function() {return {"Foo": {}}; }
|    | 124|+	GetLimitChangers: function() {return { "Foo": {}}; }
| 125| 125| });
| 126| 126| 
| 127| 127| AddMock(100, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 121| 121| AddMock(100, IID_EntityLimits, {
| 122| 122| 	GetLimits: function() { return {"Foo": 10}; },
| 123| 123| 	GetCounts: function() { return {"Foo": 5}; },
| 124|    |-	GetLimitChangers: function() {return {"Foo": {}}; }
|    | 124|+	GetLimitChangers: function() {return {"Foo": {} }; }
| 125| 125| });
| 126| 126| 
| 127| 127| AddMock(100, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetBasicStatistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 134| 134| });
| 135| 135| 
| 136| 136| AddMock(100, IID_StatisticsTracker, {
| 137|    |-	GetBasicStatistics: function() {
|    | 137|+	"GetBasicStatistics": function() {
| 138| 138| 		return {
| 139| 139| 			"resourcesGathered": {
| 140| 140| 				"food": 100,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSequences' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 146| 146| 			"percentMapExplored": 10
| 147| 147| 		};
| 148| 148| 	},
| 149|    |-	GetSequences: function() {
|    | 149|+	"GetSequences": function() {
| 150| 150| 		return {
| 151| 151| 			"unitsTrained": [0, 10],
| 152| 152| 			"unitsLost": [0, 42],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseTrainedUnitsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 171| 171| 			"teamPeakPercentOfMapControlled": [0, 10]
| 172| 172| 		};
| 173| 173| 	},
| 174|    |-	IncreaseTrainedUnitsCounter: function() { return 1; },
|    | 174|+	"IncreaseTrainedUnitsCounter": function() { return 1; },
| 175| 175| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 176| 176| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 177| 177| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseConstructedBuildingsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 172| 172| 		};
| 173| 173| 	},
| 174| 174| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 175|    |-	IncreaseConstructedBuildingsCounter: function() { return 1; },
|    | 175|+	"IncreaseConstructedBuildingsCounter": function() { return 1; },
| 176| 176| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 177| 177| });
| 178| 178| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseBuiltCivCentresCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 173| 173| 	},
| 174| 174| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 175| 175| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 176|    |-	IncreaseBuiltCivCentresCounter: function() { return 1; }
|    | 176|+	"IncreaseBuiltCivCentresCounter": function() { return 1; }
| 177| 177| });
| 178| 178| 
| 179| 179| AddMock(101, IID_Player, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 177| 177| });
| 178| 178| 
| 179| 179| AddMock(101, IID_Player, {
| 180|    |-	GetName: function() { return "Player 2"; },
|    | 180|+	"GetName": function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182| 182| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCiv' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 178| 178| 
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181|    |-	GetCiv: function() { return "mace"; },
|    | 181|+	"GetCiv": function() { return "mace"; },
| 182| 182| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetColor' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 182|+	"GetColor": function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 182|+	GetColor: function() { return { "r": 1, g: 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 182|+	GetColor: function() { return { r: 1, "g": 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 182|+	GetColor: function() { return { r: 1, g: 0, "b": 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 182|+	GetColor: function() { return { r: 1, g: 0, b: 0, "a": 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| AddMock(101, IID_Player, {
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 182|+	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1 }; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanControlAllUnits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| 	GetName: function() { return "Player 2"; },
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182| 182| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 183|    |-	CanControlAllUnits: function() { return true; },
|    | 183|+	"CanControlAllUnits": function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
| 186| 186| 	GetMaxPopulation: function() { return 300; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 181| 181| 	GetCiv: function() { return "mace"; },
| 182| 182| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184|    |-	GetPopulationCount: function() { return 40; },
|    | 184|+	"GetPopulationCount": function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
| 186| 186| 	GetMaxPopulation: function() { return 300; },
| 187| 187| 	GetResourceCounts: function() { return { food: 200 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 182| 182| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185|    |-	GetPopulationLimit: function() { return 30; },
|    | 185|+	"GetPopulationLimit": function() { return 30; },
| 186| 186| 	GetMaxPopulation: function() { return 300; },
| 187| 187| 	GetResourceCounts: function() { return { food: 200 }; },
| 188| 188| 	GetPanelEntities: function() { return []; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetMaxPopulation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 183| 183| 	CanControlAllUnits: function() { return true; },
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
| 186|    |-	GetMaxPopulation: function() { return 300; },
|    | 186|+	"GetMaxPopulation": function() { return 300; },
| 187| 187| 	GetResourceCounts: function() { return { food: 200 }; },
| 188| 188| 	GetPanelEntities: function() { return []; },
| 189| 189| 	IsTrainingBlocked: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetResourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
| 186| 186| 	GetMaxPopulation: function() { return 300; },
| 187|    |-	GetResourceCounts: function() { return { food: 200 }; },
|    | 187|+	"GetResourceCounts": function() { return { food: 200 }; },
| 188| 188| 	GetPanelEntities: function() { return []; },
| 189| 189| 	IsTrainingBlocked: function() { return false; },
| 190| 190| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 184| 184| 	GetPopulationCount: function() { return 40; },
| 185| 185| 	GetPopulationLimit: function() { return 30; },
| 186| 186| 	GetMaxPopulation: function() { return 300; },
| 187|    |-	GetResourceCounts: function() { return { food: 200 }; },
|    | 187|+	GetResourceCounts: function() { return { "food": 200 }; },
| 188| 188| 	GetPanelEntities: function() { return []; },
| 189| 189| 	IsTrainingBlocked: function() { return false; },
| 190| 190| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPanelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 185| 185| 	GetPopulationLimit: function() { return 30; },
| 186| 186| 	GetMaxPopulation: function() { return 300; },
| 187| 187| 	GetResourceCounts: function() { return { food: 200 }; },
| 188|    |-	GetPanelEntities: function() { return []; },
|    | 188|+	"GetPanelEntities": function() { return []; },
| 189| 189| 	IsTrainingBlocked: function() { return false; },
| 190| 190| 	GetState: function() { return "active"; },
| 191| 191| 	GetTeam: function() { return -1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsTrainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 186| 186| 	GetMaxPopulation: function() { return 300; },
| 187| 187| 	GetResourceCounts: function() { return { food: 200 }; },
| 188| 188| 	GetPanelEntities: function() { return []; },
| 189|    |-	IsTrainingBlocked: function() { return false; },
|    | 189|+	"IsTrainingBlocked": function() { return false; },
| 190| 190| 	GetState: function() { return "active"; },
| 191| 191| 	GetTeam: function() { return -1; },
| 192| 192| 	GetLockTeams: function() {return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetState' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 187| 187| 	GetResourceCounts: function() { return { food: 200 }; },
| 188| 188| 	GetPanelEntities: function() { return []; },
| 189| 189| 	IsTrainingBlocked: function() { return false; },
| 190|    |-	GetState: function() { return "active"; },
|    | 190|+	"GetState": function() { return "active"; },
| 191| 191| 	GetTeam: function() { return -1; },
| 192| 192| 	GetLockTeams: function() {return false; },
| 193| 193| 	GetCheatsEnabled: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTeam' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 188| 188| 	GetPanelEntities: function() { return []; },
| 189| 189| 	IsTrainingBlocked: function() { return false; },
| 190| 190| 	GetState: function() { return "active"; },
| 191|    |-	GetTeam: function() { return -1; },
|    | 191|+	"GetTeam": function() { return -1; },
| 192| 192| 	GetLockTeams: function() {return false; },
| 193| 193| 	GetCheatsEnabled: function() { return false; },
| 194| 194| 	GetDiplomacy: function() { return [-1, 1]; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLockTeams' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 189| 189| 	IsTrainingBlocked: function() { return false; },
| 190| 190| 	GetState: function() { return "active"; },
| 191| 191| 	GetTeam: function() { return -1; },
| 192|    |-	GetLockTeams: function() {return false; },
|    | 192|+	"GetLockTeams": function() {return false; },
| 193| 193| 	GetCheatsEnabled: function() { return false; },
| 194| 194| 	GetDiplomacy: function() { return [-1, 1]; },
| 195| 195| 	IsAlly: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 190| 190| 	GetState: function() { return "active"; },
| 191| 191| 	GetTeam: function() { return -1; },
| 192| 192| 	GetLockTeams: function() {return false; },
| 193|    |-	GetCheatsEnabled: function() { return false; },
|    | 193|+	"GetCheatsEnabled": function() { return false; },
| 194| 194| 	GetDiplomacy: function() { return [-1, 1]; },
| 195| 195| 	IsAlly: function() { return true; },
| 196| 196| 	IsMutualAlly: function() {return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDiplomacy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 191| 191| 	GetTeam: function() { return -1; },
| 192| 192| 	GetLockTeams: function() {return false; },
| 193| 193| 	GetCheatsEnabled: function() { return false; },
| 194|    |-	GetDiplomacy: function() { return [-1, 1]; },
|    | 194|+	"GetDiplomacy": function() { return [-1, 1]; },
| 195| 195| 	IsAlly: function() { return true; },
| 196| 196| 	IsMutualAlly: function() {return false; },
| 197| 197| 	IsNeutral: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 192| 192| 	GetLockTeams: function() {return false; },
| 193| 193| 	GetCheatsEnabled: function() { return false; },
| 194| 194| 	GetDiplomacy: function() { return [-1, 1]; },
| 195|    |-	IsAlly: function() { return true; },
|    | 195|+	"IsAlly": function() { return true; },
| 196| 196| 	IsMutualAlly: function() {return false; },
| 197| 197| 	IsNeutral: function() { return false; },
| 198| 198| 	IsEnemy: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 193| 193| 	GetCheatsEnabled: function() { return false; },
| 194| 194| 	GetDiplomacy: function() { return [-1, 1]; },
| 195| 195| 	IsAlly: function() { return true; },
| 196|    |-	IsMutualAlly: function() {return false; },
|    | 196|+	"IsMutualAlly": function() {return false; },
| 197| 197| 	IsNeutral: function() { return false; },
| 198| 198| 	IsEnemy: function() { return false; },
| 199| 199| 	GetDisabledTemplates: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 194| 194| 	GetDiplomacy: function() { return [-1, 1]; },
| 195| 195| 	IsAlly: function() { return true; },
| 196| 196| 	IsMutualAlly: function() {return false; },
| 197|    |-	IsNeutral: function() { return false; },
|    | 197|+	"IsNeutral": function() { return false; },
| 198| 198| 	IsEnemy: function() { return false; },
| 199| 199| 	GetDisabledTemplates: function() { return {}; },
| 200| 200| 	GetDisabledTechnologies: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 195| 195| 	IsAlly: function() { return true; },
| 196| 196| 	IsMutualAlly: function() {return false; },
| 197| 197| 	IsNeutral: function() { return false; },
| 198|    |-	IsEnemy: function() { return false; },
|    | 198|+	"IsEnemy": function() { return false; },
| 199| 199| 	GetDisabledTemplates: function() { return {}; },
| 200| 200| 	GetDisabledTechnologies: function() { return {}; },
| 201| 201| 	GetSpyCostMultiplier: function() { return 1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 196| 196| 	IsMutualAlly: function() {return false; },
| 197| 197| 	IsNeutral: function() { return false; },
| 198| 198| 	IsEnemy: function() { return false; },
| 199|    |-	GetDisabledTemplates: function() { return {}; },
|    | 199|+	"GetDisabledTemplates": function() { return {}; },
| 200| 200| 	GetDisabledTechnologies: function() { return {}; },
| 201| 201| 	GetSpyCostMultiplier: function() { return 1; },
| 202| 202| 	HasSharedDropsites: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 197| 197| 	IsNeutral: function() { return false; },
| 198| 198| 	IsEnemy: function() { return false; },
| 199| 199| 	GetDisabledTemplates: function() { return {}; },
| 200|    |-	GetDisabledTechnologies: function() { return {}; },
|    | 200|+	"GetDisabledTechnologies": function() { return {}; },
| 201| 201| 	GetSpyCostMultiplier: function() { return 1; },
| 202| 202| 	HasSharedDropsites: function() { return false; },
| 203| 203| 	HasSharedLos: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSpyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 198| 198| 	IsEnemy: function() { return false; },
| 199| 199| 	GetDisabledTemplates: function() { return {}; },
| 200| 200| 	GetDisabledTechnologies: function() { return {}; },
| 201|    |-	GetSpyCostMultiplier: function() { return 1; },
|    | 201|+	"GetSpyCostMultiplier": function() { return 1; },
| 202| 202| 	HasSharedDropsites: function() { return false; },
| 203| 203| 	HasSharedLos: function() { return false; }
| 204| 204| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 199| 199| 	GetDisabledTemplates: function() { return {}; },
| 200| 200| 	GetDisabledTechnologies: function() { return {}; },
| 201| 201| 	GetSpyCostMultiplier: function() { return 1; },
| 202|    |-	HasSharedDropsites: function() { return false; },
|    | 202|+	"HasSharedDropsites": function() { return false; },
| 203| 203| 	HasSharedLos: function() { return false; }
| 204| 204| });
| 205| 205| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 200| 200| 	GetDisabledTechnologies: function() { return {}; },
| 201| 201| 	GetSpyCostMultiplier: function() { return 1; },
| 202| 202| 	HasSharedDropsites: function() { return false; },
| 203|    |-	HasSharedLos: function() { return false; }
|    | 203|+	"HasSharedLos": function() { return false; }
| 204| 204| });
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 204| 204| });
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207|    |-	GetLimits: function() { return {"Bar": 20}; },
|    | 207|+	"GetLimits": function() { return {"Bar": 20}; },
| 208| 208| 	GetCounts: function() { return {"Bar": 0}; },
| 209| 209| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 210| 210| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 204| 204| });
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207|    |-	GetLimits: function() { return {"Bar": 20}; },
|    | 207|+	GetLimits: function() { return { "Bar": 20}; },
| 208| 208| 	GetCounts: function() { return {"Bar": 0}; },
| 209| 209| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 210| 210| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 204| 204| });
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207|    |-	GetLimits: function() { return {"Bar": 20}; },
|    | 207|+	GetLimits: function() { return {"Bar": 20 }; },
| 208| 208| 	GetCounts: function() { return {"Bar": 0}; },
| 209| 209| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 210| 210| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207| 207| 	GetLimits: function() { return {"Bar": 20}; },
| 208|    |-	GetCounts: function() { return {"Bar": 0}; },
|    | 208|+	"GetCounts": function() { return {"Bar": 0}; },
| 209| 209| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 210| 210| });
| 211| 211| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207| 207| 	GetLimits: function() { return {"Bar": 20}; },
| 208|    |-	GetCounts: function() { return {"Bar": 0}; },
|    | 208|+	GetCounts: function() { return { "Bar": 0}; },
| 209| 209| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 210| 210| });
| 211| 211| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 205| 205| 
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207| 207| 	GetLimits: function() { return {"Bar": 20}; },
| 208|    |-	GetCounts: function() { return {"Bar": 0}; },
|    | 208|+	GetCounts: function() { return {"Bar": 0 }; },
| 209| 209| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 210| 210| });
| 211| 211| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207| 207| 	GetLimits: function() { return {"Bar": 20}; },
| 208| 208| 	GetCounts: function() { return {"Bar": 0}; },
| 209|    |-	GetLimitChangers: function() {return {"Bar": {}}; }
|    | 209|+	"GetLimitChangers": function() {return {"Bar": {}}; }
| 210| 210| });
| 211| 211| 
| 212| 212| AddMock(101, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207| 207| 	GetLimits: function() { return {"Bar": 20}; },
| 208| 208| 	GetCounts: function() { return {"Bar": 0}; },
| 209|    |-	GetLimitChangers: function() {return {"Bar": {}}; }
|    | 209|+	GetLimitChangers: function() {return { "Bar": {}}; }
| 210| 210| });
| 211| 211| 
| 212| 212| AddMock(101, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 206| 206| AddMock(101, IID_EntityLimits, {
| 207| 207| 	GetLimits: function() { return {"Bar": 20}; },
| 208| 208| 	GetCounts: function() { return {"Bar": 0}; },
| 209|    |-	GetLimitChangers: function() {return {"Bar": {}}; }
|    | 209|+	GetLimitChangers: function() {return {"Bar": {} }; }
| 210| 210| });
| 211| 211| 
| 212| 212| AddMock(101, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetBasicStatistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 219| 219| });
| 220| 220| 
| 221| 221| AddMock(101, IID_StatisticsTracker, {
| 222|    |-	GetBasicStatistics: function() {
|    | 222|+	"GetBasicStatistics": function() {
| 223| 223| 		return {
| 224| 224| 			"resourcesGathered": {
| 225| 225| 				"food": 100,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSequences' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 231| 231| 			"percentMapExplored": 10
| 232| 232| 		};
| 233| 233| 	},
| 234|    |-	GetSequences: function() {
|    | 234|+	"GetSequences": function() {
| 235| 235| 		return {
| 236| 236| 			"unitsTrained": [0, 10],
| 237| 237| 			"unitsLost": [0, 9],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseTrainedUnitsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 256| 256| 			"teamPeakPercentOfMapControlled": [0, 10]
| 257| 257| 		};
| 258| 258| 	},
| 259|    |-	IncreaseTrainedUnitsCounter: function() { return 1; },
|    | 259|+	"IncreaseTrainedUnitsCounter": function() { return 1; },
| 260| 260| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 261| 261| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 262| 262| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseConstructedBuildingsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 257| 257| 		};
| 258| 258| 	},
| 259| 259| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 260|    |-	IncreaseConstructedBuildingsCounter: function() { return 1; },
|    | 260|+	"IncreaseConstructedBuildingsCounter": function() { return 1; },
| 261| 261| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 262| 262| });
| 263| 263| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseBuiltCivCentresCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 258| 258| 	},
| 259| 259| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 260| 260| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 261|    |-	IncreaseBuiltCivCentresCounter: function() { return 1; }
|    | 261|+	"IncreaseBuiltCivCentresCounter": function() { return 1; }
| 262| 262| });
| 263| 263| 
| 264| 264| // Note: property order matters when using TS_ASSERT_UNEVAL_EQUALS,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'players' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 265| 265| //	because uneval preserves property order. So make sure this object
| 266| 266| //	matches the ordering in GuiInterface.
| 267| 267| TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), {
| 268|    |-	players: [
|    | 268|+	"players": [
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'name' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 267| 267| TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), {
| 268| 268| 	players: [
| 269| 269| 		{
| 270|    |-			name: "Player 1",
|    | 270|+			"name": "Player 1",
| 271| 271| 			civ: "gaia",
| 272| 272| 			color: { r:1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'civ' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 268| 268| 	players: [
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271|    |-			civ: "gaia",
|    | 271|+			"civ": "gaia",
| 272| 272| 			color: { r:1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'color' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			"color": { r:1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { "r":1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r: 1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r:1, "g":1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r:1, g: 1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r:1, g:1, "b":1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r:1, g:1, b: 1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r:1, g:1, b:1, "a":1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 		{
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 272|+			color: { r:1, g:1, b:1, a: 1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'controlsAll' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 			name: "Player 1",
| 271| 271| 			civ: "gaia",
| 272| 272| 			color: { r:1, g:1, b:1, a:1 },
| 273|    |-			controlsAll: false,
|    | 273|+			"controlsAll": false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
| 276| 276| 			popMax: 200,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 271| 271| 			civ: "gaia",
| 272| 272| 			color: { r:1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274|    |-			popCount: 10,
|    | 274|+			"popCount": 10,
| 275| 275| 			popLimit: 20,
| 276| 276| 			popMax: 200,
| 277| 277| 			panelEntities: [],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 272| 272| 			color: { r:1, g:1, b:1, a:1 },
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275|    |-			popLimit: 20,
|    | 275|+			"popLimit": 20,
| 276| 276| 			popMax: 200,
| 277| 277| 			panelEntities: [],
| 278| 278| 			resourceCounts: { food: 100 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popMax' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 273| 273| 			controlsAll: false,
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
| 276|    |-			popMax: 200,
|    | 276|+			"popMax": 200,
| 277| 277| 			panelEntities: [],
| 278| 278| 			resourceCounts: { food: 100 },
| 279| 279| 			trainingBlocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'panelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 274| 274| 			popCount: 10,
| 275| 275| 			popLimit: 20,
| 276| 276| 			popMax: 200,
| 277|    |-			panelEntities: [],
|    | 277|+			"panelEntities": [],
| 278| 278| 			resourceCounts: { food: 100 },
| 279| 279| 			trainingBlocked: false,
| 280| 280| 			state: "active",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 275| 275| 			popLimit: 20,
| 276| 276| 			popMax: 200,
| 277| 277| 			panelEntities: [],
| 278|    |-			resourceCounts: { food: 100 },
|    | 278|+			"resourceCounts": { food: 100 },
| 279| 279| 			trainingBlocked: false,
| 280| 280| 			state: "active",
| 281| 281| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 275| 275| 			popLimit: 20,
| 276| 276| 			popMax: 200,
| 277| 277| 			panelEntities: [],
| 278|    |-			resourceCounts: { food: 100 },
|    | 278|+			resourceCounts: { "food": 100 },
| 279| 279| 			trainingBlocked: false,
| 280| 280| 			state: "active",
| 281| 281| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'trainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 276| 276| 			popMax: 200,
| 277| 277| 			panelEntities: [],
| 278| 278| 			resourceCounts: { food: 100 },
| 279|    |-			trainingBlocked: false,
|    | 279|+			"trainingBlocked": false,
| 280| 280| 			state: "active",
| 281| 281| 			team: -1,
| 282| 282| 			teamsLocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'state' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 277| 277| 			panelEntities: [],
| 278| 278| 			resourceCounts: { food: 100 },
| 279| 279| 			trainingBlocked: false,
| 280|    |-			state: "active",
|    | 280|+			"state": "active",
| 281| 281| 			team: -1,
| 282| 282| 			teamsLocked: false,
| 283| 283| 			cheatsEnabled: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'team' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 278| 278| 			resourceCounts: { food: 100 },
| 279| 279| 			trainingBlocked: false,
| 280| 280| 			state: "active",
| 281|    |-			team: -1,
|    | 281|+			"team": -1,
| 282| 282| 			teamsLocked: false,
| 283| 283| 			cheatsEnabled: false,
| 284| 284| 			disabledTemplates: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'teamsLocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 279| 279| 			trainingBlocked: false,
| 280| 280| 			state: "active",
| 281| 281| 			team: -1,
| 282|    |-			teamsLocked: false,
|    | 282|+			"teamsLocked": false,
| 283| 283| 			cheatsEnabled: false,
| 284| 284| 			disabledTemplates: {},
| 285| 285| 			disabledTechnologies: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'cheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 280| 280| 			state: "active",
| 281| 281| 			team: -1,
| 282| 282| 			teamsLocked: false,
| 283|    |-			cheatsEnabled: false,
|    | 283|+			"cheatsEnabled": false,
| 284| 284| 			disabledTemplates: {},
| 285| 285| 			disabledTechnologies: {},
| 286| 286| 			hasSharedDropsites: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 281| 281| 			team: -1,
| 282| 282| 			teamsLocked: false,
| 283| 283| 			cheatsEnabled: false,
| 284|    |-			disabledTemplates: {},
|    | 284|+			"disabledTemplates": {},
| 285| 285| 			disabledTechnologies: {},
| 286| 286| 			hasSharedDropsites: false,
| 287| 287| 			hasSharedLos: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 282| 282| 			teamsLocked: false,
| 283| 283| 			cheatsEnabled: false,
| 284| 284| 			disabledTemplates: {},
| 285|    |-			disabledTechnologies: {},
|    | 285|+			"disabledTechnologies": {},
| 286| 286| 			hasSharedDropsites: false,
| 287| 287| 			hasSharedLos: false,
| 288| 288| 			spyCostMultiplier: 1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 283| 283| 			cheatsEnabled: false,
| 284| 284| 			disabledTemplates: {},
| 285| 285| 			disabledTechnologies: {},
| 286|    |-			hasSharedDropsites: false,
|    | 286|+			"hasSharedDropsites": false,
| 287| 287| 			hasSharedLos: false,
| 288| 288| 			spyCostMultiplier: 1,
| 289| 289| 			phase: "village",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 284| 284| 			disabledTemplates: {},
| 285| 285| 			disabledTechnologies: {},
| 286| 286| 			hasSharedDropsites: false,
| 287|    |-			hasSharedLos: false,
|    | 287|+			"hasSharedLos": false,
| 288| 288| 			spyCostMultiplier: 1,
| 289| 289| 			phase: "village",
| 290| 290| 			isAlly: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'spyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 285| 285| 			disabledTechnologies: {},
| 286| 286| 			hasSharedDropsites: false,
| 287| 287| 			hasSharedLos: false,
| 288|    |-			spyCostMultiplier: 1,
|    | 288|+			"spyCostMultiplier": 1,
| 289| 289| 			phase: "village",
| 290| 290| 			isAlly: [false, false],
| 291| 291| 			isMutualAlly: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'phase' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 286| 286| 			hasSharedDropsites: false,
| 287| 287| 			hasSharedLos: false,
| 288| 288| 			spyCostMultiplier: 1,
| 289|    |-			phase: "village",
|    | 289|+			"phase": "village",
| 290| 290| 			isAlly: [false, false],
| 291| 291| 			isMutualAlly: [false, false],
| 292| 292| 			isNeutral: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 287| 287| 			hasSharedLos: false,
| 288| 288| 			spyCostMultiplier: 1,
| 289| 289| 			phase: "village",
| 290|    |-			isAlly: [false, false],
|    | 290|+			"isAlly": [false, false],
| 291| 291| 			isMutualAlly: [false, false],
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 288| 288| 			spyCostMultiplier: 1,
| 289| 289| 			phase: "village",
| 290| 290| 			isAlly: [false, false],
| 291|    |-			isMutualAlly: [false, false],
|    | 291|+			"isMutualAlly": [false, false],
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 289| 289| 			phase: "village",
| 290| 290| 			isAlly: [false, false],
| 291| 291| 			isMutualAlly: [false, false],
| 292|    |-			isNeutral: [false, false],
|    | 292|+			"isNeutral": [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 290| 290| 			isAlly: [false, false],
| 291| 291| 			isMutualAlly: [false, false],
| 292| 292| 			isNeutral: [false, false],
| 293|    |-			isEnemy: [true, true],
|    | 293|+			"isEnemy": [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 291| 291| 			isMutualAlly: [false, false],
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294|    |-			entityLimits: {"Foo": 10},
|    | 294|+			"entityLimits": {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 291| 291| 			isMutualAlly: [false, false],
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294|    |-			entityLimits: {"Foo": 10},
|    | 294|+			entityLimits: { "Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 291| 291| 			isMutualAlly: [false, false],
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294|    |-			entityLimits: {"Foo": 10},
|    | 294|+			entityLimits: {"Foo": 10 },
| 295| 295| 			entityCounts: {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295|    |-			entityCounts: {"Foo": 5},
|    | 295|+			"entityCounts": {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295|    |-			entityCounts: {"Foo": 5},
|    | 295|+			entityCounts: { "Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 292| 292| 			isNeutral: [false, false],
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295|    |-			entityCounts: {"Foo": 5},
|    | 295|+			entityCounts: {"Foo": 5 },
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296|    |-			entityLimitChangers: {"Foo": {}},
|    | 296|+			"entityLimitChangers": {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
| 299| 299| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296|    |-			entityLimitChangers: {"Foo": {}},
|    | 296|+			entityLimitChangers: { "Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
| 299| 299| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 293| 293| 			isEnemy: [true, true],
| 294| 294| 			entityLimits: {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296|    |-			entityLimitChangers: {"Foo": {}},
|    | 296|+			entityLimitChangers: {"Foo": {} },
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
| 299| 299| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchQueued' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 294| 294| 			entityLimits: {"Foo": 10},
| 295| 295| 			entityCounts: {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297|    |-			researchQueued: new Map(),
|    | 297|+			"researchQueued": new Map(),
| 298| 298| 			researchStarted: new Set(),
| 299| 299| 			researchedTechs: new Set(),
| 300| 300| 			classCounts: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchStarted' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 295| 295| 			entityCounts: {"Foo": 5},
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298|    |-			researchStarted: new Set(),
|    | 298|+			"researchStarted": new Set(),
| 299| 299| 			researchedTechs: new Set(),
| 300| 300| 			classCounts: {},
| 301| 301| 			typeCountsByClass: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchedTechs' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 296| 296| 			entityLimitChangers: {"Foo": {}},
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
| 299|    |-			researchedTechs: new Set(),
|    | 299|+			"researchedTechs": new Set(),
| 300| 300| 			classCounts: {},
| 301| 301| 			typeCountsByClass: {},
| 302| 302| 			canBarter: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'classCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 297| 297| 			researchQueued: new Map(),
| 298| 298| 			researchStarted: new Set(),
| 299| 299| 			researchedTechs: new Set(),
| 300|    |-			classCounts: {},
|    | 300|+			"classCounts": {},
| 301| 301| 			typeCountsByClass: {},
| 302| 302| 			canBarter: false,
| 303| 303| 			barterPrices: {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'typeCountsByClass' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 298| 298| 			researchStarted: new Set(),
| 299| 299| 			researchedTechs: new Set(),
| 300| 300| 			classCounts: {},
| 301|    |-			typeCountsByClass: {},
|    | 301|+			"typeCountsByClass": {},
| 302| 302| 			canBarter: false,
| 303| 303| 			barterPrices: {
| 304| 304| 				"buy": { "food": 150 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'canBarter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 299| 299| 			researchedTechs: new Set(),
| 300| 300| 			classCounts: {},
| 301| 301| 			typeCountsByClass: {},
| 302|    |-			canBarter: false,
|    | 302|+			"canBarter": false,
| 303| 303| 			barterPrices: {
| 304| 304| 				"buy": { "food": 150 },
| 305| 305| 				"sell": { "food": 25 }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'barterPrices' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 300| 300| 			classCounts: {},
| 301| 301| 			typeCountsByClass: {},
| 302| 302| 			canBarter: false,
| 303|    |-			barterPrices: {
|    | 303|+			"barterPrices": {
| 304| 304| 				"buy": { "food": 150 },
| 305| 305| 				"sell": { "food": 25 }
| 306| 306| 			},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'statistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 304| 304| 				"buy": { "food": 150 },
| 305| 305| 				"sell": { "food": 25 }
| 306| 306| 			},
| 307|    |-			statistics: {
|    | 307|+			"statistics": {
| 308| 308| 				resourcesGathered: {
| 309| 309| 					food: 100,
| 310| 310| 					wood: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourcesGathered' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 305| 305| 				"sell": { "food": 25 }
| 306| 306| 			},
| 307| 307| 			statistics: {
| 308|    |-				resourcesGathered: {
|    | 308|+				"resourcesGathered": {
| 309| 309| 					food: 100,
| 310| 310| 					wood: 0,
| 311| 311| 					metal: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 306| 306| 			},
| 307| 307| 			statistics: {
| 308| 308| 				resourcesGathered: {
| 309|    |-					food: 100,
|    | 309|+					"food": 100,
| 310| 310| 					wood: 0,
| 311| 311| 					metal: 0,
| 312| 312| 					stone: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'wood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 307| 307| 			statistics: {
| 308| 308| 				resourcesGathered: {
| 309| 309| 					food: 100,
| 310|    |-					wood: 0,
|    | 310|+					"wood": 0,
| 311| 311| 					metal: 0,
| 312| 312| 					stone: 0,
| 313| 313| 					vegetarianFood: 0
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'metal' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 308| 308| 				resourcesGathered: {
| 309| 309| 					food: 100,
| 310| 310| 					wood: 0,
| 311|    |-					metal: 0,
|    | 311|+					"metal": 0,
| 312| 312| 					stone: 0,
| 313| 313| 					vegetarianFood: 0
| 314| 314| 				},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'stone' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 309| 309| 					food: 100,
| 310| 310| 					wood: 0,
| 311| 311| 					metal: 0,
| 312|    |-					stone: 0,
|    | 312|+					"stone": 0,
| 313| 313| 					vegetarianFood: 0
| 314| 314| 				},
| 315| 315| 				percentMapExplored: 10
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'vegetarianFood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 310| 310| 					wood: 0,
| 311| 311| 					metal: 0,
| 312| 312| 					stone: 0,
| 313|    |-					vegetarianFood: 0
|    | 313|+					"vegetarianFood": 0
| 314| 314| 				},
| 315| 315| 				percentMapExplored: 10
| 316| 316| 			}
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'percentMapExplored' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 312| 312| 					stone: 0,
| 313| 313| 					vegetarianFood: 0
| 314| 314| 				},
| 315|    |-				percentMapExplored: 10
|    | 315|+				"percentMapExplored": 10
| 316| 316| 			}
| 317| 317| 		},
| 318| 318| 		{
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'name' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 316| 316| 			}
| 317| 317| 		},
| 318| 318| 		{
| 319|    |-			name: "Player 2",
|    | 319|+			"name": "Player 2",
| 320| 320| 			civ: "mace",
| 321| 321| 			color: { r:1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'civ' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 317| 317| 		},
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320|    |-			civ: "mace",
|    | 320|+			"civ": "mace",
| 321| 321| 			color: { r:1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'color' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			"color": { r:1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { "r":1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r: 1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r:1, "g":0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r:1, g: 0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r:1, g:0, "b":0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r:1, g:0, b: 0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r:1, g:0, b:0, "a":1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		{
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 321|+			color: { r:1, g:0, b:0, a: 1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'controlsAll' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 			name: "Player 2",
| 320| 320| 			civ: "mace",
| 321| 321| 			color: { r:1, g:0, b:0, a:1 },
| 322|    |-			controlsAll: true,
|    | 322|+			"controlsAll": true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
| 325| 325| 			popMax: 300,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 320| 320| 			civ: "mace",
| 321| 321| 			color: { r:1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323|    |-			popCount: 40,
|    | 323|+			"popCount": 40,
| 324| 324| 			popLimit: 30,
| 325| 325| 			popMax: 300,
| 326| 326| 			panelEntities: [],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 321| 321| 			color: { r:1, g:0, b:0, a:1 },
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324|    |-			popLimit: 30,
|    | 324|+			"popLimit": 30,
| 325| 325| 			popMax: 300,
| 326| 326| 			panelEntities: [],
| 327| 327| 			resourceCounts: { food: 200 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popMax' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 322| 322| 			controlsAll: true,
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
| 325|    |-			popMax: 300,
|    | 325|+			"popMax": 300,
| 326| 326| 			panelEntities: [],
| 327| 327| 			resourceCounts: { food: 200 },
| 328| 328| 			trainingBlocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'panelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 323| 323| 			popCount: 40,
| 324| 324| 			popLimit: 30,
| 325| 325| 			popMax: 300,
| 326|    |-			panelEntities: [],
|    | 326|+			"panelEntities": [],
| 327| 327| 			resourceCounts: { food: 200 },
| 328| 328| 			trainingBlocked: false,
| 329| 329| 			state: "active",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 324| 324| 			popLimit: 30,
| 325| 325| 			popMax: 300,
| 326| 326| 			panelEntities: [],
| 327|    |-			resourceCounts: { food: 200 },
|    | 327|+			"resourceCounts": { food: 200 },
| 328| 328| 			trainingBlocked: false,
| 329| 329| 			state: "active",
| 330| 330| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 324| 324| 			popLimit: 30,
| 325| 325| 			popMax: 300,
| 326| 326| 			panelEntities: [],
| 327|    |-			resourceCounts: { food: 200 },
|    | 327|+			resourceCounts: { "food": 200 },
| 328| 328| 			trainingBlocked: false,
| 329| 329| 			state: "active",
| 330| 330| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'trainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 325| 325| 			popMax: 300,
| 326| 326| 			panelEntities: [],
| 327| 327| 			resourceCounts: { food: 200 },
| 328|    |-			trainingBlocked: false,
|    | 328|+			"trainingBlocked": false,
| 329| 329| 			state: "active",
| 330| 330| 			team: -1,
| 331| 331| 			teamsLocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'state' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 326| 326| 			panelEntities: [],
| 327| 327| 			resourceCounts: { food: 200 },
| 328| 328| 			trainingBlocked: false,
| 329|    |-			state: "active",
|    | 329|+			"state": "active",
| 330| 330| 			team: -1,
| 331| 331| 			teamsLocked: false,
| 332| 332| 			cheatsEnabled: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'team' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 327| 327| 			resourceCounts: { food: 200 },
| 328| 328| 			trainingBlocked: false,
| 329| 329| 			state: "active",
| 330|    |-			team: -1,
|    | 330|+			"team": -1,
| 331| 331| 			teamsLocked: false,
| 332| 332| 			cheatsEnabled: false,
| 333| 333| 			disabledTemplates: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'teamsLocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 328| 328| 			trainingBlocked: false,
| 329| 329| 			state: "active",
| 330| 330| 			team: -1,
| 331|    |-			teamsLocked: false,
|    | 331|+			"teamsLocked": false,
| 332| 332| 			cheatsEnabled: false,
| 333| 333| 			disabledTemplates: {},
| 334| 334| 			disabledTechnologies: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'cheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 329| 329| 			state: "active",
| 330| 330| 			team: -1,
| 331| 331| 			teamsLocked: false,
| 332|    |-			cheatsEnabled: false,
|    | 332|+			"cheatsEnabled": false,
| 333| 333| 			disabledTemplates: {},
| 334| 334| 			disabledTechnologies: {},
| 335| 335| 			hasSharedDropsites: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 330| 330| 			team: -1,
| 331| 331| 			teamsLocked: false,
| 332| 332| 			cheatsEnabled: false,
| 333|    |-			disabledTemplates: {},
|    | 333|+			"disabledTemplates": {},
| 334| 334| 			disabledTechnologies: {},
| 335| 335| 			hasSharedDropsites: false,
| 336| 336| 			hasSharedLos: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 331| 331| 			teamsLocked: false,
| 332| 332| 			cheatsEnabled: false,
| 333| 333| 			disabledTemplates: {},
| 334|    |-			disabledTechnologies: {},
|    | 334|+			"disabledTechnologies": {},
| 335| 335| 			hasSharedDropsites: false,
| 336| 336| 			hasSharedLos: false,
| 337| 337| 			spyCostMultiplier: 1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 332| 332| 			cheatsEnabled: false,
| 333| 333| 			disabledTemplates: {},
| 334| 334| 			disabledTechnologies: {},
| 335|    |-			hasSharedDropsites: false,
|    | 335|+			"hasSharedDropsites": false,
| 336| 336| 			hasSharedLos: false,
| 337| 337| 			spyCostMultiplier: 1,
| 338| 338| 			phase: "village",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 333| 333| 			disabledTemplates: {},
| 334| 334| 			disabledTechnologies: {},
| 335| 335| 			hasSharedDropsites: false,
| 336|    |-			hasSharedLos: false,
|    | 336|+			"hasSharedLos": false,
| 337| 337| 			spyCostMultiplier: 1,
| 338| 338| 			phase: "village",
| 339| 339| 			isAlly: [true, true],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'spyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 334| 334| 			disabledTechnologies: {},
| 335| 335| 			hasSharedDropsites: false,
| 336| 336| 			hasSharedLos: false,
| 337|    |-			spyCostMultiplier: 1,
|    | 337|+			"spyCostMultiplier": 1,
| 338| 338| 			phase: "village",
| 339| 339| 			isAlly: [true, true],
| 340| 340| 			isMutualAlly: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'phase' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 335| 335| 			hasSharedDropsites: false,
| 336| 336| 			hasSharedLos: false,
| 337| 337| 			spyCostMultiplier: 1,
| 338|    |-			phase: "village",
|    | 338|+			"phase": "village",
| 339| 339| 			isAlly: [true, true],
| 340| 340| 			isMutualAlly: [false, false],
| 341| 341| 			isNeutral: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 336| 336| 			hasSharedLos: false,
| 337| 337| 			spyCostMultiplier: 1,
| 338| 338| 			phase: "village",
| 339|    |-			isAlly: [true, true],
|    | 339|+			"isAlly": [true, true],
| 340| 340| 			isMutualAlly: [false, false],
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 337| 337| 			spyCostMultiplier: 1,
| 338| 338| 			phase: "village",
| 339| 339| 			isAlly: [true, true],
| 340|    |-			isMutualAlly: [false, false],
|    | 340|+			"isMutualAlly": [false, false],
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 338| 338| 			phase: "village",
| 339| 339| 			isAlly: [true, true],
| 340| 340| 			isMutualAlly: [false, false],
| 341|    |-			isNeutral: [false, false],
|    | 341|+			"isNeutral": [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 339| 339| 			isAlly: [true, true],
| 340| 340| 			isMutualAlly: [false, false],
| 341| 341| 			isNeutral: [false, false],
| 342|    |-			isEnemy: [false, false],
|    | 342|+			"isEnemy": [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 340| 340| 			isMutualAlly: [false, false],
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343|    |-			entityLimits: {"Bar": 20},
|    | 343|+			"entityLimits": {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 340| 340| 			isMutualAlly: [false, false],
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343|    |-			entityLimits: {"Bar": 20},
|    | 343|+			entityLimits: { "Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 340| 340| 			isMutualAlly: [false, false],
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343|    |-			entityLimits: {"Bar": 20},
|    | 343|+			entityLimits: {"Bar": 20 },
| 344| 344| 			entityCounts: {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344|    |-			entityCounts: {"Bar": 0},
|    | 344|+			"entityCounts": {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344|    |-			entityCounts: {"Bar": 0},
|    | 344|+			entityCounts: { "Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 341| 341| 			isNeutral: [false, false],
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344|    |-			entityCounts: {"Bar": 0},
|    | 344|+			entityCounts: {"Bar": 0 },
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345|    |-			entityLimitChangers: {"Bar": {}},
|    | 345|+			"entityLimitChangers": {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
| 348| 348| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345|    |-			entityLimitChangers: {"Bar": {}},
|    | 345|+			entityLimitChangers: { "Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
| 348| 348| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 342| 342| 			isEnemy: [false, false],
| 343| 343| 			entityLimits: {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345|    |-			entityLimitChangers: {"Bar": {}},
|    | 345|+			entityLimitChangers: {"Bar": {} },
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
| 348| 348| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchQueued' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 343| 343| 			entityLimits: {"Bar": 20},
| 344| 344| 			entityCounts: {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346|    |-			researchQueued: new Map(),
|    | 346|+			"researchQueued": new Map(),
| 347| 347| 			researchStarted: new Set(),
| 348| 348| 			researchedTechs: new Set(),
| 349| 349| 			classCounts: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchStarted' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 344| 344| 			entityCounts: {"Bar": 0},
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347|    |-			researchStarted: new Set(),
|    | 347|+			"researchStarted": new Set(),
| 348| 348| 			researchedTechs: new Set(),
| 349| 349| 			classCounts: {},
| 350| 350| 			typeCountsByClass: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchedTechs' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 345| 345| 			entityLimitChangers: {"Bar": {}},
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
| 348|    |-			researchedTechs: new Set(),
|    | 348|+			"researchedTechs": new Set(),
| 349| 349| 			classCounts: {},
| 350| 350| 			typeCountsByClass: {},
| 351| 351| 			canBarter: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'classCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 346| 346| 			researchQueued: new Map(),
| 347| 347| 			researchStarted: new Set(),
| 348| 348| 			researchedTechs: new Set(),
| 349|    |-			classCounts: {},
|    | 349|+			"classCounts": {},
| 350| 350| 			typeCountsByClass: {},
| 351| 351| 			canBarter: false,
| 352| 352| 			barterPrices: {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'typeCountsByClass' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 347| 347| 			researchStarted: new Set(),
| 348| 348| 			researchedTechs: new Set(),
| 349| 349| 			classCounts: {},
| 350|    |-			typeCountsByClass: {},
|    | 350|+			"typeCountsByClass": {},
| 351| 351| 			canBarter: false,
| 352| 352| 			barterPrices: {
| 353| 353| 				"buy": { "food": 150 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'canBarter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 348| 348| 			researchedTechs: new Set(),
| 349| 349| 			classCounts: {},
| 350| 350| 			typeCountsByClass: {},
| 351|    |-			canBarter: false,
|    | 351|+			"canBarter": false,
| 352| 352| 			barterPrices: {
| 353| 353| 				"buy": { "food": 150 },
| 354| 354| 				"sell": { "food": 25 }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'barterPrices' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 349| 349| 			classCounts: {},
| 350| 350| 			typeCountsByClass: {},
| 351| 351| 			canBarter: false,
| 352|    |-			barterPrices: {
|    | 352|+			"barterPrices": {
| 353| 353| 				"buy": { "food": 150 },
| 354| 354| 				"sell": { "food": 25 }
| 355| 355| 			},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'statistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 353| 353| 				"buy": { "food": 150 },
| 354| 354| 				"sell": { "food": 25 }
| 355| 355| 			},
| 356|    |-			statistics: {
|    | 356|+			"statistics": {
| 357| 357| 				resourcesGathered: {
| 358| 358| 					food: 100,
| 359| 359| 					wood: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourcesGathered' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 354| 354| 				"sell": { "food": 25 }
| 355| 355| 			},
| 356| 356| 			statistics: {
| 357|    |-				resourcesGathered: {
|    | 357|+				"resourcesGathered": {
| 358| 358| 					food: 100,
| 359| 359| 					wood: 0,
| 360| 360| 					metal: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 355| 355| 			},
| 356| 356| 			statistics: {
| 357| 357| 				resourcesGathered: {
| 358|    |-					food: 100,
|    | 358|+					"food": 100,
| 359| 359| 					wood: 0,
| 360| 360| 					metal: 0,
| 361| 361| 					stone: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'wood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 356| 356| 			statistics: {
| 357| 357| 				resourcesGathered: {
| 358| 358| 					food: 100,
| 359|    |-					wood: 0,
|    | 359|+					"wood": 0,
| 360| 360| 					metal: 0,
| 361| 361| 					stone: 0,
| 362| 362| 					vegetarianFood: 0
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'metal' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 357| 357| 				resourcesGathered: {
| 358| 358| 					food: 100,
| 359| 359| 					wood: 0,
| 360|    |-					metal: 0,
|    | 360|+					"metal": 0,
| 361| 361| 					stone: 0,
| 362| 362| 					vegetarianFood: 0
| 363| 363| 				},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'stone' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 358| 358| 					food: 100,
| 359| 359| 					wood: 0,
| 360| 360| 					metal: 0,
| 361|    |-					stone: 0,
|    | 361|+					"stone": 0,
| 362| 362| 					vegetarianFood: 0
| 363| 363| 				},
| 364| 364| 				percentMapExplored: 10
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'vegetarianFood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 359| 359| 					wood: 0,
| 360| 360| 					metal: 0,
| 361| 361| 					stone: 0,
| 362|    |-					vegetarianFood: 0
|    | 362|+					"vegetarianFood": 0
| 363| 363| 				},
| 364| 364| 				percentMapExplored: 10
| 365| 365| 			}
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'percentMapExplored' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 361| 361| 					stone: 0,
| 362| 362| 					vegetarianFood: 0
| 363| 363| 				},
| 364|    |-				percentMapExplored: 10
|    | 364|+				"percentMapExplored": 10
| 365| 365| 			}
| 366| 366| 		}
| 367| 367| 	],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'circularMap' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 365| 365| 			}
| 366| 366| 		}
| 367| 367| 	],
| 368|    |-	circularMap: false,
|    | 368|+	"circularMap": false,
| 369| 369| 	timeElapsed: 0,
| 370| 370| 	"victoryConditions": ["conquest", "wonder"],
| 371| 371| 	alliedVictory: false
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'timeElapsed' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 366| 366| 		}
| 367| 367| 	],
| 368| 368| 	circularMap: false,
| 369|    |-	timeElapsed: 0,
|    | 369|+	"timeElapsed": 0,
| 370| 370| 	"victoryConditions": ["conquest", "wonder"],
| 371| 371| 	alliedVictory: false
| 372| 372| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'alliedVictory' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 368| 368| 	circularMap: false,
| 369| 369| 	timeElapsed: 0,
| 370| 370| 	"victoryConditions": ["conquest", "wonder"],
| 371|    |-	alliedVictory: false
|    | 371|+	"alliedVictory": false
| 372| 372| });
| 373| 373| 
| 374| 374| TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), {
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 376| 376| 		{
| 377| 377| 			"name": "Player 1",
| 378| 378| 			"civ": "gaia",
| 379|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 379|+			"color": { "r": 1, "g":1, "b":1, "a":1 },
| 380| 380| 			"controlsAll": false,
| 381| 381| 			"popCount": 10,
| 382| 382| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 376| 376| 		{
| 377| 377| 			"name": "Player 1",
| 378| 378| 			"civ": "gaia",
| 379|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 379|+			"color": { "r":1, "g": 1, "b":1, "a":1 },
| 380| 380| 			"controlsAll": false,
| 381| 381| 			"popCount": 10,
| 382| 382| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 376| 376| 		{
| 377| 377| 			"name": "Player 1",
| 378| 378| 			"civ": "gaia",
| 379|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 379|+			"color": { "r":1, "g":1, "b": 1, "a":1 },
| 380| 380| 			"controlsAll": false,
| 381| 381| 			"popCount": 10,
| 382| 382| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 376| 376| 		{
| 377| 377| 			"name": "Player 1",
| 378| 378| 			"civ": "gaia",
| 379|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 379|+			"color": { "r":1, "g":1, "b":1, "a": 1 },
| 380| 380| 			"controlsAll": false,
| 381| 381| 			"popCount": 10,
| 382| 382| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 398| 398| 			"isMutualAlly": [false, false],
| 399| 399| 			"isNeutral": [false, false],
| 400| 400| 			"isEnemy": [true, true],
| 401|    |-			"entityLimits": {"Foo": 10},
|    | 401|+			"entityLimits": { "Foo": 10},
| 402| 402| 			"entityCounts": {"Foo": 5},
| 403| 403| 			"entityLimitChangers": {"Foo": {}},
| 404| 404| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 398| 398| 			"isMutualAlly": [false, false],
| 399| 399| 			"isNeutral": [false, false],
| 400| 400| 			"isEnemy": [true, true],
| 401|    |-			"entityLimits": {"Foo": 10},
|    | 401|+			"entityLimits": {"Foo": 10 },
| 402| 402| 			"entityCounts": {"Foo": 5},
| 403| 403| 			"entityLimitChangers": {"Foo": {}},
| 404| 404| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 399| 399| 			"isNeutral": [false, false],
| 400| 400| 			"isEnemy": [true, true],
| 401| 401| 			"entityLimits": {"Foo": 10},
| 402|    |-			"entityCounts": {"Foo": 5},
|    | 402|+			"entityCounts": { "Foo": 5},
| 403| 403| 			"entityLimitChangers": {"Foo": {}},
| 404| 404| 			"researchQueued": new Map(),
| 405| 405| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 399| 399| 			"isNeutral": [false, false],
| 400| 400| 			"isEnemy": [true, true],
| 401| 401| 			"entityLimits": {"Foo": 10},
| 402|    |-			"entityCounts": {"Foo": 5},
|    | 402|+			"entityCounts": {"Foo": 5 },
| 403| 403| 			"entityLimitChangers": {"Foo": {}},
| 404| 404| 			"researchQueued": new Map(),
| 405| 405| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 400| 400| 			"isEnemy": [true, true],
| 401| 401| 			"entityLimits": {"Foo": 10},
| 402| 402| 			"entityCounts": {"Foo": 5},
| 403|    |-			"entityLimitChangers": {"Foo": {}},
|    | 403|+			"entityLimitChangers": { "Foo": {}},
| 404| 404| 			"researchQueued": new Map(),
| 405| 405| 			"researchStarted": new Set(),
| 406| 406| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 400| 400| 			"isEnemy": [true, true],
| 401| 401| 			"entityLimits": {"Foo": 10},
| 402| 402| 			"entityCounts": {"Foo": 5},
| 403|    |-			"entityLimitChangers": {"Foo": {}},
|    | 403|+			"entityLimitChangers": {"Foo": {} },
| 404| 404| 			"researchQueued": new Map(),
| 405| 405| 			"researchStarted": new Set(),
| 406| 406| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 448| 448| 		{
| 449| 449| 			"name": "Player 2",
| 450| 450| 			"civ": "mace",
| 451|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 451|+			"color": { "r": 1, "g":0, "b":0, "a":1 },
| 452| 452| 			"controlsAll": true,
| 453| 453| 			"popCount": 40,
| 454| 454| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 448| 448| 		{
| 449| 449| 			"name": "Player 2",
| 450| 450| 			"civ": "mace",
| 451|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 451|+			"color": { "r":1, "g": 0, "b":0, "a":1 },
| 452| 452| 			"controlsAll": true,
| 453| 453| 			"popCount": 40,
| 454| 454| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 448| 448| 		{
| 449| 449| 			"name": "Player 2",
| 450| 450| 			"civ": "mace",
| 451|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 451|+			"color": { "r":1, "g":0, "b": 0, "a":1 },
| 452| 452| 			"controlsAll": true,
| 453| 453| 			"popCount": 40,
| 454| 454| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 448| 448| 		{
| 449| 449| 			"name": "Player 2",
| 450| 450| 			"civ": "mace",
| 451|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 451|+			"color": { "r":1, "g":0, "b":0, "a": 1 },
| 452| 452| 			"controlsAll": true,
| 453| 453| 			"popCount": 40,
| 454| 454| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 470| 470| 			"isMutualAlly": [false, false],
| 471| 471| 			"isNeutral": [false, false],
| 472| 472| 			"isEnemy": [false, false],
| 473|    |-			"entityLimits": {"Bar": 20},
|    | 473|+			"entityLimits": { "Bar": 20},
| 474| 474| 			"entityCounts": {"Bar": 0},
| 475| 475| 			"entityLimitChangers": {"Bar": {}},
| 476| 476| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 470| 470| 			"isMutualAlly": [false, false],
| 471| 471| 			"isNeutral": [false, false],
| 472| 472| 			"isEnemy": [false, false],
| 473|    |-			"entityLimits": {"Bar": 20},
|    | 473|+			"entityLimits": {"Bar": 20 },
| 474| 474| 			"entityCounts": {"Bar": 0},
| 475| 475| 			"entityLimitChangers": {"Bar": {}},
| 476| 476| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 471| 471| 			"isNeutral": [false, false],
| 472| 472| 			"isEnemy": [false, false],
| 473| 473| 			"entityLimits": {"Bar": 20},
| 474|    |-			"entityCounts": {"Bar": 0},
|    | 474|+			"entityCounts": { "Bar": 0},
| 475| 475| 			"entityLimitChangers": {"Bar": {}},
| 476| 476| 			"researchQueued": new Map(),
| 477| 477| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 471| 471| 			"isNeutral": [false, false],
| 472| 472| 			"isEnemy": [false, false],
| 473| 473| 			"entityLimits": {"Bar": 20},
| 474|    |-			"entityCounts": {"Bar": 0},
|    | 474|+			"entityCounts": {"Bar": 0 },
| 475| 475| 			"entityLimitChangers": {"Bar": {}},
| 476| 476| 			"researchQueued": new Map(),
| 477| 477| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 472| 472| 			"isEnemy": [false, false],
| 473| 473| 			"entityLimits": {"Bar": 20},
| 474| 474| 			"entityCounts": {"Bar": 0},
| 475|    |-			"entityLimitChangers": {"Bar": {}},
|    | 475|+			"entityLimitChangers": { "Bar": {}},
| 476| 476| 			"researchQueued": new Map(),
| 477| 477| 			"researchStarted": new Set(),
| 478| 478| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 472| 472| 			"isEnemy": [false, false],
| 473| 473| 			"entityLimits": {"Bar": 20},
| 474| 474| 			"entityCounts": {"Bar": 0},
| 475|    |-			"entityLimitChangers": {"Bar": {}},
|    | 475|+			"entityLimitChangers": {"Bar": {} },
| 476| 476| 			"researchQueued": new Map(),
| 477| 477| 			"researchStarted": new Set(),
| 478| 478| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetEntitiesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 526| 526| 
| 527| 527| 
| 528| 528| AddMock(10, IID_Builder, {
| 529|    |-	GetEntitiesList: function() {
|    | 529|+	"GetEntitiesList": function() {
| 530| 530| 		return ["test1", "test2"];
| 531| 531| 	},
| 532| 532| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 532| 532| });
| 533| 533| 
| 534| 534| AddMock(10, IID_Health, {
| 535|    |-	GetHitpoints: function() { return 50; },
|    | 535|+	"GetHitpoints": function() { return 50; },
| 536| 536| 	GetMaxHitpoints: function() { return 60; },
| 537| 537| 	IsRepairable: function() { return false; },
| 538| 538| 	IsUnhealable: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetMaxHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 533| 533| 
| 534| 534| AddMock(10, IID_Health, {
| 535| 535| 	GetHitpoints: function() { return 50; },
| 536|    |-	GetMaxHitpoints: function() { return 60; },
|    | 536|+	"GetMaxHitpoints": function() { return 60; },
| 537| 537| 	IsRepairable: function() { return false; },
| 538| 538| 	IsUnhealable: function() { return false; }
| 539| 539| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsRepairable' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 534| 534| AddMock(10, IID_Health, {
| 535| 535| 	GetHitpoints: function() { return 50; },
| 536| 536| 	GetMaxHitpoints: function() { return 60; },
| 537|    |-	IsRepairable: function() { return false; },
|    | 537|+	"IsRepairable": function() { return false; },
| 538| 538| 	IsUnhealable: function() { return false; }
| 539| 539| });
| 540| 540| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsUnhealable' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 535| 535| 	GetHitpoints: function() { return 50; },
| 536| 536| 	GetMaxHitpoints: function() { return 60; },
| 537| 537| 	IsRepairable: function() { return false; },
| 538|    |-	IsUnhealable: function() { return false; }
|    | 538|+	"IsUnhealable": function() { return false; }
| 539| 539| });
| 540| 540| 
| 541| 541| AddMock(10, IID_Identity, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetClassesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 539| 539| });
| 540| 540| 
| 541| 541| AddMock(10, IID_Identity, {
| 542|    |-	GetClassesList: function() { return ["class1", "class2"]; },
|    | 542|+	"GetClassesList": function() { return ["class1", "class2"]; },
| 543| 543| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 544| 544| 	GetRank: function() { return "foo"; },
| 545| 545| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetVisibleClassesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 540| 540| 
| 541| 541| AddMock(10, IID_Identity, {
| 542| 542| 	GetClassesList: function() { return ["class1", "class2"]; },
| 543|    |-	GetVisibleClassesList: function() { return ["class3", "class4"]; },
|    | 543|+	"GetVisibleClassesList": function() { return ["class3", "class4"]; },
| 544| 544| 	GetRank: function() { return "foo"; },
| 545| 545| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 546| 546| 	HasClass: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRank' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 541| 541| AddMock(10, IID_Identity, {
| 542| 542| 	GetClassesList: function() { return ["class1", "class2"]; },
| 543| 543| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 544|    |-	GetRank: function() { return "foo"; },
|    | 544|+	"GetRank": function() { return "foo"; },
| 545| 545| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 546| 546| 	HasClass: function() { return true; },
| 547| 547| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSelectionGroupName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 542| 542| 	GetClassesList: function() { return ["class1", "class2"]; },
| 543| 543| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 544| 544| 	GetRank: function() { return "foo"; },
| 545|    |-	GetSelectionGroupName: function() { return "Selection Group Name"; },
|    | 545|+	"GetSelectionGroupName": function() { return "Selection Group Name"; },
| 546| 546| 	HasClass: function() { return true; },
| 547| 547| });
| 548| 548| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasClass' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 543| 543| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 544| 544| 	GetRank: function() { return "foo"; },
| 545| 545| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 546|    |-	HasClass: function() { return true; },
|    | 546|+	"HasClass": function() { return true; },
| 547| 547| });
| 548| 548| 
| 549| 549| AddMock(10, IID_Position, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTurretParent' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 547| 547| });
| 548| 548| 
| 549| 549| AddMock(10, IID_Position, {
| 550|    |-	GetTurretParent: function() {return INVALID_ENTITY;},
|    | 550|+	"GetTurretParent": function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552| 552| 		return {x:1, y:2, z:3};
| 553| 553| 	},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 548| 548| 
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551|    |-	GetPosition: function() {
|    | 551|+	"GetPosition": function() {
| 552| 552| 		return {x:1, y:2, z:3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return { x:1, y:2, z:3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'x' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {"x":1, y:2, z:3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'x'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {x: 1, y:2, z:3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'y' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {x:1, "y":2, z:3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'y'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {x:1, y: 2, z:3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'z' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {x:1, y:2, "z":3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'z'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {x:1, y:2, z: 3};
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 549| 549| AddMock(10, IID_Position, {
| 550| 550| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 551| 551| 	GetPosition: function() {
| 552|    |-		return {x:1, y:2, z:3};
|    | 552|+		return {x:1, y:2, z:3 };
| 553| 553| 	},
| 554| 554| 	IsInWorld: function() {
| 555| 555| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsInWorld' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 551| 551| 	GetPosition: function() {
| 552| 552| 		return {x:1, y:2, z:3};
| 553| 553| 	},
| 554|    |-	IsInWorld: function() {
|    | 554|+	"IsInWorld": function() {
| 555| 555| 		return true;
| 556| 556| 	}
| 557| 557| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": { x:1, y:2, z:3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'x' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {"x":1, y:2, z:3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'x'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {x: 1, y:2, z:3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'y' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {x:1, "y":2, z:3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'y'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {x:1, y: 2, z:3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'z' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {x:1, y:2, "z":3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'z'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {x:1, y:2, z: 3},
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 574| 574| 		"visibleClasses": ["class3", "class4"],
| 575| 575| 		"selectionGroupName": "Selection Group Name"
| 576| 576| 	},
| 577|    |-	"position": {x:1, y:2, z:3},
|    | 577|+	"position": {x:1, y:2, z:3 },
| 578| 578| 	"hitpoints": 50,
| 579| 579| 	"maxHitpoints": 60,
| 580| 580| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'isBarterMarket'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 582| 582| 	"builder": true,
| 583| 583| 	"canGarrison": false,
| 584| 584| 	"visibility": "visible",
| 585|    |-	"isBarterMarket":true,
|    | 585|+	"isBarterMarket": true,
| 586| 586| 	"resourceTrickle": {
| 587| 587| 		"interval": 1250,
| 588| 588| 		"rates": { "food": 2, "wood": 3, "stone": 5, "metal": 9 }

binaries/data/mods/public/gui/session/unit_actions.js
| 557| »   »   »   switch·(tradingDetails.type)
|    | [NORMAL] ESLintBear (default-case):
|    | Expected a default case.
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 523| 523| 			if (cmpGarrisonHolder)
| 524| 524| 			{
| 525| 525| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 526|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 527|    |-				    && player != +cmd.owner)
|    | 526|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 527|+				    player != +cmd.owner)
| 528| 528| 						continue;
| 529| 529| 
| 530| 530| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 525| 525| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 526| 526| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 527| 527| 				    && player != +cmd.owner)
| 528|    |-						continue;
|    | 528|+					continue;
| 529| 529| 
| 530| 530| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 531| 531| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1150|1150| 
|1151|1151| 	// send Metadata info if any
|1152|1152| 	if (cmd.metadata)
|1153|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1153|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1154|1154| 
|1155|1155| 	// Tell the units to start building this new entity
|1156|1156| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1150|1150| 
|1151|1151| 	// send Metadata info if any
|1152|1152| 	if (cmd.metadata)
|1153|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1153|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1154|1154| 
|1155|1155| 	// Tell the units to start building this new entity
|1156|1156| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1150|1150| 
|1151|1151| 	// send Metadata info if any
|1152|1152| 	if (cmd.metadata)
|1153|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1153|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1154|1154| 
|1155|1155| 	// Tell the units to start building this new entity
|1156|1156| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1258|1258| 		}
|1259|1259| 
|1260|1260| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1261|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1261|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1262|1262| 	}
|1263|1263| 
|1264|1264| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1322|1322| 
|1323|1323| 				if (i > 0)
|1324|1324| 				{
|1325|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1325|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1326|1326| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1327|1327| 					// TODO: ensure that cmpPreviousObstruction exists
|1328|1328| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1485|1485| 		// Check that all its members are selected
|1486|1486| 		var fid = formationIds[0];
|1487|1487| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1488|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1489|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1488|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1489|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1490|1490| 		{
|1491|1491| 			cmpFormation.DeleteTwinFormations();
|1492|1492| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1593|1593| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1594|1594| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1595|1595| 				if (matrix[i][j] < distSq)
|1596|    |-					closeClusters = [i,j];
|    |1596|+					closeClusters = [i, j];
|1597|1597| 
|1598|1598| 		// if no more close clusters found, just return all found clusters so far
|1599|1599| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1615|1615| 		}
|1616|1616| 		// remove the rows and columns in the matrix for the merged clusters,
|1617|1617| 		// and the clusters themselves from the cluster list
|1618|    |-		clusters.splice(closeClusters[0],1);
|    |1618|+		clusters.splice(closeClusters[0], 1);
|1619|1619| 		clusters.splice(closeClusters[1],1);
|1620|1620| 		matrix.splice(closeClusters[0],1);
|1621|1621| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1616|1616| 		// remove the rows and columns in the matrix for the merged clusters,
|1617|1617| 		// and the clusters themselves from the cluster list
|1618|1618| 		clusters.splice(closeClusters[0],1);
|1619|    |-		clusters.splice(closeClusters[1],1);
|    |1619|+		clusters.splice(closeClusters[1], 1);
|1620|1620| 		matrix.splice(closeClusters[0],1);
|1621|1621| 		matrix.splice(closeClusters[1],1);
|1622|1622| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1617|1617| 		// and the clusters themselves from the cluster list
|1618|1618| 		clusters.splice(closeClusters[0],1);
|1619|1619| 		clusters.splice(closeClusters[1],1);
|1620|    |-		matrix.splice(closeClusters[0],1);
|    |1620|+		matrix.splice(closeClusters[0], 1);
|1621|1621| 		matrix.splice(closeClusters[1],1);
|1622|1622| 		for (let i = 0; i < matrix.length; ++i)
|1623|1623| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1618|1618| 		clusters.splice(closeClusters[0],1);
|1619|1619| 		clusters.splice(closeClusters[1],1);
|1620|1620| 		matrix.splice(closeClusters[0],1);
|1621|    |-		matrix.splice(closeClusters[1],1);
|    |1621|+		matrix.splice(closeClusters[1], 1);
|1622|1622| 		for (let i = 0; i < matrix.length; ++i)
|1623|1623| 		{
|1624|1624| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1622|1622| 		for (let i = 0; i < matrix.length; ++i)
|1623|1623| 		{
|1624|1624| 			if (matrix[i].length > closeClusters[0])
|1625|    |-				matrix[i].splice(closeClusters[0],1);
|    |1625|+				matrix[i].splice(closeClusters[0], 1);
|1626|1626| 			if (matrix[i].length > closeClusters[1])
|1627|1627| 				matrix[i].splice(closeClusters[1],1);
|1628|1628| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1624|1624| 			if (matrix[i].length > closeClusters[0])
|1625|1625| 				matrix[i].splice(closeClusters[0],1);
|1626|1626| 			if (matrix[i].length > closeClusters[1])
|1627|    |-				matrix[i].splice(closeClusters[1],1);
|    |1627|+				matrix[i].splice(closeClusters[1], 1);
|1628|1628| 		}
|1629|1629| 		// add a new row of distances to the matrix and the new cluster
|1630|1630| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 775| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1281| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1282| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1512| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1591| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1608| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1622| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 527| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 715| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 955| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 968| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1115| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1367| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1450| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1489| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1515| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1548| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|  60|  60| 
|  61|  61| 	// Keep in sync with gui/session/unit_actions.js.
|  62|  62| 	this.SetControllability(["Deletable"], msg.capturePoints[owner] >= totalCapturePoints / 2);
|  63|    |-}
|    |  63|+};
|  64|  64| 
|  65|  65| Engine.RegisterComponentType(IID_Controllability, "Controllability", Controllability);

binaries/data/mods/public/simulation/components/Controllability.js
|  63| }
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 826| 826| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 827| 827| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 828| 828| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 829|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 829|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 830| 830| 	}
| 831| 831| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 832| 832| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1659|1659| 			{
|1660|1660| 				minDist2 = dist2;
|1661|1661| 				minDistEntitySnapData = {
|1662|    |-						"x": pos.x,
|    |1662|+					"x": pos.x,
|1663|1663| 						"z": pos.z,
|1664|1664| 						"angle": cmpPosition.GetRotation().y,
|1665|1665| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1660|1660| 				minDist2 = dist2;
|1661|1661| 				minDistEntitySnapData = {
|1662|1662| 						"x": pos.x,
|1663|    |-						"z": pos.z,
|    |1663|+					"z": pos.z,
|1664|1664| 						"angle": cmpPosition.GetRotation().y,
|1665|1665| 						"ent": ent
|1666|1666| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1661|1661| 				minDistEntitySnapData = {
|1662|1662| 						"x": pos.x,
|1663|1663| 						"z": pos.z,
|1664|    |-						"angle": cmpPosition.GetRotation().y,
|    |1664|+					"angle": cmpPosition.GetRotation().y,
|1665|1665| 						"ent": ent
|1666|1666| 				};
|1667|1667| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1662|1662| 						"x": pos.x,
|1663|1663| 						"z": pos.z,
|1664|1664| 						"angle": cmpPosition.GetRotation().y,
|1665|    |-						"ent": ent
|    |1665|+					"ent": ent
|1666|1666| 				};
|1667|1667| 			}
|1668|1668| 		}
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 751| 751| 					this.FinishOrder();
| 752| 752| 					return;
| 753| 753| 				}
| 754|    |-				else
| 755|    |-				{
|    | 754|+				
| 756| 755| 					this.SetNextState("GARRISON.APPROACHING");
| 757| 756| 					return;
| 758|    |-				}
|    | 757|+				
| 759| 758| 			}
| 760| 759| 
| 761| 760| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1019|1019| 			},
|1020|1020| 		},
|1021|1021| 
|1022|    |-		"GARRISON":{
|    |1022|+		"GARRISON": {
|1023|1023| 			"enter": function() {
|1024|1024| 				// If the garrisonholder should pickup, warn it so it can take needed action
|1025|1025| 				var cmpGarrisonHolder = Engine.QueryInterface(this.order.data.target, IID_GarrisonHolder);
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1968|1968| 
|1969|1969| 				"Attacked": function(msg) {
|1970|1970| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|1971|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|1972|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |1971|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |1972|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|1973|1973| 						this.RespondToTargetedEntities([msg.data.attacker]);
|1974|1974| 				},
|1975|1975| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2696|2696| 					{
|2697|2697| 						// The building was already finished/fully repaired before we arrived;
|2698|2698| 						// let the ConstructionFinished handler handle this.
|2699|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2699|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2700|2700| 						return true;
|2701|2701| 					}
|2702|2702| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2696|2696| 					{
|2697|2697| 						// The building was already finished/fully repaired before we arrived;
|2698|2698| 						// let the ConstructionFinished handler handle this.
|2699|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2699|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2700|2700| 						return true;
|2701|2701| 					}
|2702|2702| 
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3209|3209| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3210|3210| 
|3211|3211| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3212|    |-							// only used for domestic animals
|    |3212|+		// only used for domestic animals
|3213|3213| 	},
|3214|3214| };
|3215|3215| 
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3266|3266| 
|3267|3267| UnitAI.prototype.IsAnimal = function()
|3268|3268| {
|3269|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3269|+	return (!!this.template.NaturalBehaviour);
|3270|3270| };
|3271|3271| 
|3272|3272| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3382|3382| 		{
|3383|3383| 			let index = this.GetCurrentState().indexOf(".");
|3384|3384| 			if (index != -1)
|3385|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3385|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3386|3386| 			this.Stop(false);
|3387|3387| 		}
|3388|3388| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3438|3438| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3439|3439| 			continue;
|3440|3440| 		if (i == 0)
|3441|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3441|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3442|3442| 		else
|3443|3443| 			this.orderQueue.splice(i, 1);
|3444|3444| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3438|3438| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3439|3439| 			continue;
|3440|3440| 		if (i == 0)
|3441|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3441|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3442|3442| 		else
|3443|3443| 			this.orderQueue.splice(i, 1);
|3444|3444| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3522|3522| };
|3523|3523| 
|3524|3524| 
|3525|    |-//// FSM linkage functions ////
|    |3525|+// // FSM linkage functions ////
|3526|3526| 
|3527|3527| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3528|3528| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3692|3692| 				continue;
|3693|3693| 			if (this.orderQueue[i].type == type)
|3694|3694| 				continue;
|3695|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3695|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3696|3696| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3697|3697| 			return;
|3698|3698| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3692|3692| 				continue;
|3693|3693| 			if (this.orderQueue[i].type == type)
|3694|3694| 				continue;
|3695|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3695|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3696|3696| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3697|3697| 			return;
|3698|3698| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3863|3863| 	if (data.timerRepeat === undefined)
|3864|3864| 		this.timer = undefined;
|3865|3865| 
|3866|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3866|+	this.UnitFsm.ProcessMessage(this, { "type": "Timer", "data": data, "lateness": lateness});
|3867|3867| };
|3868|3868| 
|3869|3869| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3863|3863| 	if (data.timerRepeat === undefined)
|3864|3864| 		this.timer = undefined;
|3865|3865| 
|3866|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness});
|    |3866|+	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "lateness": lateness });
|3867|3867| };
|3868|3868| 
|3869|3869| /**
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3908|3908| 	// TODO: This is a bit inefficient since every unit listens to every
|3909|3909| 	// construction message - ideally we could scope it to only the one we're building
|3910|3910| 
|3911|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3911|+	this.UnitFsm.ProcessMessage(this, { "type": "ConstructionFinished", "data": msg});
|3912|3912| };
|3913|3913| 
|3914|3914| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3908|3908| 	// TODO: This is a bit inefficient since every unit listens to every
|3909|3909| 	// construction message - ideally we could scope it to only the one we're building
|3910|3910| 
|3911|    |-	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg});
|    |3911|+	this.UnitFsm.ProcessMessage(this, {"type": "ConstructionFinished", "data": msg });
|3912|3912| };
|3913|3913| 
|3914|3914| UnitAI.prototype.OnGlobalEntityRenamed = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3933|3933| 
|3934|3934| UnitAI.prototype.OnAttacked = function(msg)
|3935|3935| {
|3936|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3936|+	this.UnitFsm.ProcessMessage(this, { "type": "Attacked", "data": msg});
|3937|3937| };
|3938|3938| 
|3939|3939| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3933|3933| 
|3934|3934| UnitAI.prototype.OnAttacked = function(msg)
|3935|3935| {
|3936|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg});
|    |3936|+	this.UnitFsm.ProcessMessage(this, {"type": "Attacked", "data": msg });
|3937|3937| };
|3938|3938| 
|3939|3939| UnitAI.prototype.OnGuardedAttacked = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3938|3938| 
|3939|3939| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3940|3940| {
|3941|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3941|+	this.UnitFsm.ProcessMessage(this, { "type": "GuardedAttacked", "data": msg.data});
|3942|3942| };
|3943|3943| 
|3944|3944| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3938|3938| 
|3939|3939| UnitAI.prototype.OnGuardedAttacked = function(msg)
|3940|3940| {
|3941|    |-	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data});
|    |3941|+	this.UnitFsm.ProcessMessage(this, {"type": "GuardedAttacked", "data": msg.data });
|3942|3942| };
|3943|3943| 
|3944|3944| UnitAI.prototype.OnHealthChanged = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3943|3943| 
|3944|3944| UnitAI.prototype.OnHealthChanged = function(msg)
|3945|3945| {
|3946|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3946|+	this.UnitFsm.ProcessMessage(this, { "type": "HealthChanged", "from": msg.from, "to": msg.to});
|3947|3947| };
|3948|3948| 
|3949|3949| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3943|3943| 
|3944|3944| UnitAI.prototype.OnHealthChanged = function(msg)
|3945|3945| {
|3946|    |-	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to});
|    |3946|+	this.UnitFsm.ProcessMessage(this, {"type": "HealthChanged", "from": msg.from, "to": msg.to });
|3947|3947| };
|3948|3948| 
|3949|3949| UnitAI.prototype.OnRangeUpdate = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3949|3949| UnitAI.prototype.OnRangeUpdate = function(msg)
|3950|3950| {
|3951|3951| 	if (msg.tag == this.losRangeQuery)
|3952|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3952|+		this.UnitFsm.ProcessMessage(this, { "type": "LosRangeUpdate", "data": msg});
|3953|3953| 	else if (msg.tag == this.losHealRangeQuery)
|3954|3954| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3955|3955| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3949|3949| UnitAI.prototype.OnRangeUpdate = function(msg)
|3950|3950| {
|3951|3951| 	if (msg.tag == this.losRangeQuery)
|3952|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|    |3952|+		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg });
|3953|3953| 	else if (msg.tag == this.losHealRangeQuery)
|3954|3954| 		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|3955|3955| };
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3951|3951| 	if (msg.tag == this.losRangeQuery)
|3952|3952| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3953|3953| 	else if (msg.tag == this.losHealRangeQuery)
|3954|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3954|+		this.UnitFsm.ProcessMessage(this, { "type": "LosHealRangeUpdate", "data": msg});
|3955|3955| };
|3956|3956| 
|3957|3957| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3951|3951| 	if (msg.tag == this.losRangeQuery)
|3952|3952| 		this.UnitFsm.ProcessMessage(this, {"type": "LosRangeUpdate", "data": msg});
|3953|3953| 	else if (msg.tag == this.losHealRangeQuery)
|3954|    |-		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg});
|    |3954|+		this.UnitFsm.ProcessMessage(this, {"type": "LosHealRangeUpdate", "data": msg });
|3955|3955| };
|3956|3956| 
|3957|3957| UnitAI.prototype.OnPackFinished = function(msg)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnPackFinished = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3959|+	this.UnitFsm.ProcessMessage(this, { "type": "PackFinished", "packed": msg.packed});
|3960|3960| };
|3961|3961| 
|3962|3962| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3956|3956| 
|3957|3957| UnitAI.prototype.OnPackFinished = function(msg)
|3958|3958| {
|3959|    |-	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|    |3959|+	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed });
|3960|3960| };
|3961|3961| 
|3962|3962| //// Helper functions to be called by the FSM ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3959|3959| 	this.UnitFsm.ProcessMessage(this, {"type": "PackFinished", "packed": msg.packed});
|3960|3960| };
|3961|3961| 
|3962|    |-//// Helper functions to be called by the FSM ////
|    |3962|+// // Helper functions to be called by the FSM ////
|3963|3963| 
|3964|3964| UnitAI.prototype.GetWalkSpeed = function()
|3965|3965| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4627|4627| UnitAI.prototype.AttackEntityInZone = function(ents)
|4628|4628| {
|4629|4629| 	var target = ents.find(target =>
|4630|    |-		this.CanAttack(target)
|4631|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|    |4630|+		this.CanAttack(target) &&
|    |4631|+		this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4632|4632| 		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4633|4633| 	);
|4634|4634| 	if (!target)
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4628|4628| {
|4629|4629| 	var target = ents.find(target =>
|4630|4630| 		this.CanAttack(target)
|4631|    |-		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true))
|4632|    |-		&& (this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|    |4631|+		&& this.CheckTargetDistanceFromHeldPosition(target, IID_Attack, this.GetBestAttackAgainst(target, true)) &&
|    |4632|+		(this.GetStance().respondChaseBeyondVision || this.CheckTargetIsInVisionRange(target))
|4633|4633| 	);
|4634|4634| 	if (!target)
|4635|4635| 		return false;
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4692|4692| 	// If we are guarding/escorting, don't abandon as long as the guarded unit is in target range of the attacker
|4693|4693| 	if (this.isGuardOf)
|4694|4694| 	{
|4695|    |-		var cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4695|+		var cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4696|4696| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4697|4697| 		if (cmpUnitAI && cmpAttack &&
|4698|4698| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4696|4696| 		var cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4697|4697| 		if (cmpUnitAI && cmpAttack &&
|4698|4698| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|4699|    |-				return false;
|    |4699|+			return false;
|4700|4700| 	}
|4701|4701| 
|4702|4702| 	// Stop if we're in hold-ground mode and it's too far from the holding point
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before 'Engine'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4734|4734| 	// If we are guarding/escorting, chase at least as long as the guarded unit is in target range of the attacker
|4735|4735| 	if (this.isGuardOf)
|4736|4736| 	{
|4737|    |-		let cmpUnitAI =  Engine.QueryInterface(target, IID_UnitAI);
|    |4737|+		let cmpUnitAI = Engine.QueryInterface(target, IID_UnitAI);
|4738|4738| 		let cmpAttack = Engine.QueryInterface(target, IID_Attack);
|4739|4739| 		if (cmpUnitAI && cmpAttack &&
|4740|4740| 		    cmpAttack.GetAttackTypes().some(type => cmpUnitAI.CheckTargetAttackRange(this.isGuardOf, type)))
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4747|4747| 	return false;
|4748|4748| };
|4749|4749| 
|4750|    |-//// External interface functions ////
|    |4750|+// // External interface functions ////
|4751|4751| 
|4752|4752| UnitAI.prototype.SetFormationController = function(ent)
|4753|4753| {
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4903|4903| 	{
|4904|4904| 		if (this.isGuardOf == target && this.order && this.order.type == "Guard")
|4905|4905| 			return;
|4906|    |-		else
|4907|    |-			this.RemoveGuard();
|    |4906|+		this.RemoveGuard();
|4908|4907| 	}
|4909|4908| 
|4910|4909| 	this.AddOrder("Guard", { "target": target, "force": false }, queued);
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5235|5235| 	    this.workOrders.length && this.workOrders[0].type == "Trade")
|5236|5236| 	{
|5237|5237| 		let cmpTrader = Engine.QueryInterface(this.entity, IID_Trader);
|5238|    |-		if (cmpTrader.HasBothMarkets() && 
|    |5238|+		if (cmpTrader.HasBothMarkets() &&
|5239|5239| 		   (cmpTrader.GetFirstMarket() == target && cmpTrader.GetSecondMarket() == source ||
|5240|5240| 		    cmpTrader.GetFirstMarket() == source && cmpTrader.GetSecondMarket() == target))
|5241|5241| 		{
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5516|5516| 				{
|5517|5517| 					var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5518|5518| 					var targetClasses = this.order.data.targetClasses;
|5519|    |-					if (targetClasses.attack && cmpIdentity
|5520|    |-						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5519|+					if (targetClasses.attack && cmpIdentity &&
|    |5520|+						!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5521|5521| 						continue;
|5522|5522| 					if (targetClasses.avoid && cmpIdentity
|5523|5523| 						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5519|5519| 					if (targetClasses.attack && cmpIdentity
|5520|5520| 						&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5521|5521| 						continue;
|5522|    |-					if (targetClasses.avoid && cmpIdentity
|5523|    |-						&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5522|+					if (targetClasses.avoid && cmpIdentity &&
|    |5523|+						MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5524|5524| 						continue;
|5525|5525| 					// Only used by the AIs to prevent some choices of targets
|5526|5526| 					if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5542|5542| 		{
|5543|5543| 			var cmpIdentity = Engine.QueryInterface(targ, IID_Identity);
|5544|5544| 			var targetClasses = this.order.data.targetClasses;
|5545|    |-			if (cmpIdentity && targetClasses.attack
|5546|    |-				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|    |5545|+			if (cmpIdentity && targetClasses.attack &&
|    |5546|+				!MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5547|5547| 				continue;
|5548|5548| 			if (cmpIdentity && targetClasses.avoid
|5549|5549| 				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5545|5545| 			if (cmpIdentity && targetClasses.attack
|5546|5546| 				&& !MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.attack))
|5547|5547| 				continue;
|5548|    |-			if (cmpIdentity && targetClasses.avoid
|5549|    |-				&& MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|    |5548|+			if (cmpIdentity && targetClasses.avoid &&
|    |5549|+				MatchesClassList(cmpIdentity.GetClassesList(), targetClasses.avoid))
|5550|5550| 				continue;
|5551|5551| 			// Only used by the AIs to prevent some choices of targets
|5552|5552| 			if (targetClasses.vetoEntities && targetClasses.vetoEntities[targ])
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5702|5702| 
|5703|5703| UnitAI.prototype.SetHeldPosition = function(x, z)
|5704|5704| {
|5705|    |-	this.heldPosition = {"x": x, "z": z};
|    |5705|+	this.heldPosition = { "x": x, "z": z};
|5706|5706| };
|5707|5707| 
|5708|5708| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5702|5702| 
|5703|5703| UnitAI.prototype.SetHeldPosition = function(x, z)
|5704|5704| {
|5705|    |-	this.heldPosition = {"x": x, "z": z};
|    |5705|+	this.heldPosition = {"x": x, "z": z };
|5706|5706| };
|5707|5707| 
|5708|5708| UnitAI.prototype.SetHeldPositionOnEntity = function(entity)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5729|5729| 	return false;
|5730|5730| };
|5731|5731| 
|5732|    |-//// Helper functions ////
|    |5732|+// // Helper functions ////
|5733|5733| 
|5734|5734| UnitAI.prototype.CanAttack = function(target)
|5735|5735| {
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5933|5933| 	return cmpPack && cmpPack.IsPacking();
|5934|5934| };
|5935|5935| 
|5936|    |-//// Formation specific functions ////
|    |5936|+// // Formation specific functions ////
|5937|5937| 
|5938|5938| UnitAI.prototype.IsAttackingAsFormation = function()
|5939|5939| {
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5938|5938| UnitAI.prototype.IsAttackingAsFormation = function()
|5939|5939| {
|5940|5940| 	var cmpAttack = Engine.QueryInterface(this.entity, IID_Attack);
|5941|    |-	return cmpAttack && cmpAttack.CanAttackAsFormation()
|5942|    |-		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    |5941|+	return cmpAttack && cmpAttack.CanAttackAsFormation() &&
|    |5942|+		this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5943|5943| };
|5944|5944| 
|5945|5945| //// Animal specific functions ////
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|5942|5942| 		&& this.GetCurrentState() == "FORMATIONCONTROLLER.COMBAT.ATTACKING";
|5943|5943| };
|5944|5944| 
|5945|    |-//// Animal specific functions ////
|    |5945|+// // Animal specific functions ////
|5946|5946| 
|5947|5947| UnitAI.prototype.MoveRandomly = function(distance)
|5948|5948| {

binaries/data/mods/public/simulation/components/UnitAI.js
| 320| »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'Order.WalkToTarget' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
| 906| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 931| »   »   »   "enter":·function(msg)·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
| 981| »   »   »   »   »   return·true;
|    | [NORMAL] ESLintBear (consistent-return):
|    | Method 'enter' expected no return value.

binaries/data/mods/public/simulation/components/UnitAI.js
|1044| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1080| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1112| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1272| »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1329| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1504| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1526| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1558| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1712| »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1762| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|1840| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2017| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2133| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2408| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2441| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2547| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2613| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2652| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|2863| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3044| »   »   »   »   "enter":·function()·{
|    | [NORMAL] ESLintBear (consistent-return):
|    | Expected to return a value at the end of method 'enter'.

binaries/data/mods/public/simulation/components/UnitAI.js
|3768| »   var·isWorkType·=·type·=>·type·==·"Gather"·||·type·==·"Trade"·||·type·==·"Repair"·||·type·==·"ReturnResource";
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4614| »   var·target·=·ents.find(target·=>·this.CanAttack(target));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4629| »   var·target·=·ents.find(target·=>
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'target' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4675| »   var·ent·=·ents.find(ent·=>·this.CanHeal(ent));
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|4698| »   »   ····cmpAttack.GetAttackTypes().some(type·=>·cmpUnitAI.CheckTargetAttackRange(this.isGuardOf,·type)))
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'type' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/UnitAI.js
|1972| »   »   »   »   »   »   &&·this.order.data.target·!=·msg.data.attacker·&&·this.GetBestAttackAgainst(msg.data.attacker,·true)·!=·"Capture")
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|3730| »   »   var·order·=·{·"type":·type,·"data":·data·};
|    | [NORMAL] JSHintBear:
|    | 'order' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|3799| »   for·(var·i·=·0;·i·<·this.orderQueue.length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|4631| »   »   &&·this.CheckTargetDistanceFromHeldPosition(target,·IID_Attack,·this.GetBestAttackAgainst(target,·true))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|4632| »   »   &&·(this.GetStance().respondChaseBeyondVision·||·this.CheckTargetIsInVisionRange(target))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5520| »   »   »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5523| »   »   »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5536| »   var·targets·=·this.GetTargetsFromUnit();
|    | [NORMAL] JSHintBear:
|    | 'targets' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5537| »   for·(var·targ·of·targets)
|    | [NORMAL] JSHintBear:
|    | 'targ' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5543| »   »   »   var·cmpIdentity·=·Engine.QueryInterface(targ,·IID_Identity);
|    | [NORMAL] JSHintBear:
|    | 'cmpIdentity' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5544| »   »   »   var·targetClasses·=·this.order.data.targetClasses;
|    | [NORMAL] JSHintBear:
|    | 'targetClasses' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5546| »   »   »   »   &&·!MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.attack))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5549| »   »   »   »   &&·MatchesClassList(cmpIdentity.GetClassesList(),·targetClasses.avoid))
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/components/UnitAI.js
|5624| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5627| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5632| »   »   var·cmpRanged·=·Engine.QueryInterface(this.entity,·iid);
|    | [NORMAL] JSHintBear:
|    | 'cmpRanged' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5635| »   »   var·range·=·iid·!==·IID_Attack·?·cmpRanged.GetRange()·:·cmpRanged.GetFullAttackRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5636| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5646| »   »   var·cmpVision·=·Engine.QueryInterface(this.entity,·IID_Vision);
|    | [NORMAL] JSHintBear:
|    | 'cmpVision' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5649| »   »   var·range·=·cmpVision.GetRange();
|    | [NORMAL] JSHintBear:
|    | 'range' is already defined.

binaries/data/mods/public/simulation/components/UnitAI.js
|5942| »   »   &&·this.GetCurrentState()·==·"FORMATIONCONTROLLER.COMBAT.ATTACKING";
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1214/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/698/display/redirect

Stan added a comment.Jan 27 2020, 12:42 PM

Can't turret use this? Or do they have another special property?

binaries/data/mods/public/simulation/components/Capturable.js
163 ↗(On Diff #10502)

Nuke.

binaries/data/mods/public/simulation/components/Controllability.js
28–29

I guess you can remove "some way" both here and below.

binaries/data/mods/public/simulation/helpers/Commands.js
1677–1685

Early return, no component, notcontrollable?

Stan added a comment.Feb 17 2020, 7:54 AM

Still some comments to be addressed.

binaries/data/mods/public/simulation/templates/special/filter/mirage.xml
11–12

Should'nt you merge controllable?

Freagarach updated this revision to Diff 11391.Feb 18 2020, 9:44 PM
Freagarach marked 3 inline comments as done.
  • Added test.
  • Early return in Commands.js.
  • Rebased.
  • Fix issue of deletable catafalques by introducing a "fixed" property.
  • Remove some redunant code ("Unloadable" in template and message.)
In D1960#108972, @Stan wrote:

Can't turret use this? Or do they have another special property?

Turrets can use this yes, what for did you have in mind?

binaries/data/mods/public/simulation/helpers/Commands.js
1677–1685

But when controlAll is true, we want any unit to be controllable.

binaries/data/mods/public/simulation/templates/special/filter/mirage.xml
11–12

Good question, I don't know actually. Undeletable in Identity was needed because it was non-optional in the template.

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (comma-spacing):
|    | There should be no space before ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_Capturable.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_Capturable.js
|  98|  98| 
|  99|  99| // Tests if the message is sent when capture points change
| 100| 100| testCapturable(testData, cmpCapturable => {
| 101|    |-	cmpCapturable.SetCapturePoints([0, 2000, 0 , 1000]);
|    | 101|+	cmpCapturable.SetCapturePoints([0, 2000, 0, 1000]);
| 102| 102| 	TS_ASSERT_UNEVAL_EQUALS(cmpCapturable.GetCapturePoints(), [0, 2000, 0, 1000]);
| 103| 103| 	Engine.PostMessage = function(ent, iid, message)
| 104| 104| 	{

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
|  25| function·testCapturable(testData,·test_function)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
| 132| function·testRegen(testData,·cpIn,·cpOut,·regenerating)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
| 157| function·testDecay(testData,·cpIn,·cpOut)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.

binaries/data/mods/public/simulation/components/tests/test_Capturable.js
| 176| function·testReduce(testData,·amount,·player,·taken)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'testData' is already declared in the upper scope.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
| 831| 831| 		updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ?
| 832| 832| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] :
| 833| 833| 			[IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer],
| 834|    |-			cmpRangeManager.GetEntitiesByPlayer(i));
|    | 834|+		cmpRangeManager.GetEntitiesByPlayer(i));
| 835| 835| 	}
| 836| 836| 	updateEntityColor([IID_Selectable, IID_StatusBars], data.selected);
| 837| 837| 	Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors();
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1664|1664| 			{
|1665|1665| 				minDist2 = dist2;
|1666|1666| 				minDistEntitySnapData = {
|1667|    |-						"x": pos.x,
|    |1667|+					"x": pos.x,
|1668|1668| 						"z": pos.z,
|1669|1669| 						"angle": cmpPosition.GetRotation().y,
|1670|1670| 						"ent": ent
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1665|1665| 				minDist2 = dist2;
|1666|1666| 				minDistEntitySnapData = {
|1667|1667| 						"x": pos.x,
|1668|    |-						"z": pos.z,
|    |1668|+					"z": pos.z,
|1669|1669| 						"angle": cmpPosition.GetRotation().y,
|1670|1670| 						"ent": ent
|1671|1671| 				};
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1666|1666| 				minDistEntitySnapData = {
|1667|1667| 						"x": pos.x,
|1668|1668| 						"z": pos.z,
|1669|    |-						"angle": cmpPosition.GetRotation().y,
|    |1669|+					"angle": cmpPosition.GetRotation().y,
|1670|1670| 						"ent": ent
|1671|1671| 				};
|1672|1672| 			}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
|1667|1667| 						"x": pos.x,
|1668|1668| 						"z": pos.z,
|1669|1669| 						"angle": cmpPosition.GetRotation().y,
|1670|    |-						"ent": ent
|    |1670|+					"ent": ent
|1671|1671| 				};
|1672|1672| 			}
|1673|1673| 		}
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 523| 523| 			if (cmpGarrisonHolder)
| 524| 524| 			{
| 525| 525| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 526|    |-				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 527|    |-				    && player != +cmd.owner)
|    | 526|+				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits &&
|    | 527|+				    player != +cmd.owner)
| 528| 528| 						continue;
| 529| 529| 
| 530| 530| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
| 525| 525| 				// Only the owner of the garrisonHolder may unload entities from any owners
| 526| 526| 				if (!IsOwnedByPlayer(player, garrisonHolder) && !data.controlAllUnits
| 527| 527| 				    && player != +cmd.owner)
| 528|    |-						continue;
|    | 528|+					continue;
| 529| 529| 
| 530| 530| 				if (!cmpGarrisonHolder.UnloadTemplate(cmd.template, cmd.owner, cmd.all))
| 531| 531| 					notifyUnloadFailure(player, garrisonHolder);
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'metadata'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1152|1152| 
|1153|1153| 	// send Metadata info if any
|1154|1154| 	if (cmd.metadata)
|1155|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1155|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata": cmd.metadata, "owner" : player } );
|1156|1156| 
|1157|1157| 	// Tell the units to start building this new entity
|1158|1158| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (key-spacing):
|    | Extra space after key 'owner'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1152|1152| 
|1153|1153| 	// send Metadata info if any
|1154|1154| 	if (cmd.metadata)
|1155|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1155|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner": player } );
|1156|1156| 
|1157|1157| 	// Tell the units to start building this new entity
|1158|1158| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (space-in-parens):
|    | There should be no spaces inside this paren.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1152|1152| 
|1153|1153| 	// send Metadata info if any
|1154|1154| 	if (cmd.metadata)
|1155|    |-		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player } );
|    |1155|+		Engine.PostMessage(ent, MT_AIMetadata, { "id": ent, "metadata" : cmd.metadata, "owner" : player });
|1156|1156| 
|1157|1157| 	// Tell the units to start building this new entity
|1158|1158| 	if (cmd.autorepair)
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1260|1260| 		}
|1261|1261| 
|1262|1262| 		lastTowerControlGroup = cmpSnappedStartObstruction.GetControlGroup();
|1263|    |-		//warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|    |1263|+		// warn("setting lastTowerControlGroup to control group of start snapped entity " + cmd.startSnappedEntity + ": " + lastTowerControlGroup);
|1264|1264| 	}
|1265|1265| 
|1266|1266| 	var i = 0;
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1324|1324| 
|1325|1325| 				if (i > 0)
|1326|1326| 				{
|1327|    |-					//warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|    |1327|+					// warn("   updating previous wall piece's secondary control group to " + newTowerControlGroup);
|1328|1328| 					var cmpPreviousObstruction = Engine.QueryInterface(pieces[i-1].ent, IID_Obstruction);
|1329|1329| 					// TODO: ensure that cmpPreviousObstruction exists
|1330|1330| 					// TODO: ensure that the previous obstruction does not yet have a secondary control group set
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1487|1487| 		// Check that all its members are selected
|1488|1488| 		var fid = formationIds[0];
|1489|1489| 		var cmpFormation = Engine.QueryInterface(+fid, IID_Formation);
|1490|    |-		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length
|1491|    |-			&& cmpFormation.GetMemberCount() == formation.entities.length)
|    |1490|+		if (cmpFormation && cmpFormation.GetMemberCount() == formation.members[fid].length &&
|    |1491|+			cmpFormation.GetMemberCount() == formation.entities.length)
|1492|1492| 		{
|1493|1493| 			cmpFormation.DeleteTwinFormations();
|1494|1494| 			// The whole formation was selected, so reuse its controller for this command
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1595|1595| 		for (var i = matrix.length - 1; i >= 0 && !closeClusters; --i)
|1596|1596| 			for (var j = i - 1; j >= 0 && !closeClusters; --j)
|1597|1597| 				if (matrix[i][j] < distSq)
|1598|    |-					closeClusters = [i,j];
|    |1598|+					closeClusters = [i, j];
|1599|1599| 
|1600|1600| 		// if no more close clusters found, just return all found clusters so far
|1601|1601| 		if (!closeClusters)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1617|1617| 		}
|1618|1618| 		// remove the rows and columns in the matrix for the merged clusters,
|1619|1619| 		// and the clusters themselves from the cluster list
|1620|    |-		clusters.splice(closeClusters[0],1);
|    |1620|+		clusters.splice(closeClusters[0], 1);
|1621|1621| 		clusters.splice(closeClusters[1],1);
|1622|1622| 		matrix.splice(closeClusters[0],1);
|1623|1623| 		matrix.splice(closeClusters[1],1);
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1618|1618| 		// remove the rows and columns in the matrix for the merged clusters,
|1619|1619| 		// and the clusters themselves from the cluster list
|1620|1620| 		clusters.splice(closeClusters[0],1);
|1621|    |-		clusters.splice(closeClusters[1],1);
|    |1621|+		clusters.splice(closeClusters[1], 1);
|1622|1622| 		matrix.splice(closeClusters[0],1);
|1623|1623| 		matrix.splice(closeClusters[1],1);
|1624|1624| 		for (let i = 0; i < matrix.length; ++i)
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1619|1619| 		// and the clusters themselves from the cluster list
|1620|1620| 		clusters.splice(closeClusters[0],1);
|1621|1621| 		clusters.splice(closeClusters[1],1);
|1622|    |-		matrix.splice(closeClusters[0],1);
|    |1622|+		matrix.splice(closeClusters[0], 1);
|1623|1623| 		matrix.splice(closeClusters[1],1);
|1624|1624| 		for (let i = 0; i < matrix.length; ++i)
|1625|1625| 		{
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1620|1620| 		clusters.splice(closeClusters[0],1);
|1621|1621| 		clusters.splice(closeClusters[1],1);
|1622|1622| 		matrix.splice(closeClusters[0],1);
|1623|    |-		matrix.splice(closeClusters[1],1);
|    |1623|+		matrix.splice(closeClusters[1], 1);
|1624|1624| 		for (let i = 0; i < matrix.length; ++i)
|1625|1625| 		{
|1626|1626| 			if (matrix[i].length > closeClusters[0])
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1624|1624| 		for (let i = 0; i < matrix.length; ++i)
|1625|1625| 		{
|1626|1626| 			if (matrix[i].length > closeClusters[0])
|1627|    |-				matrix[i].splice(closeClusters[0],1);
|    |1627|+				matrix[i].splice(closeClusters[0], 1);
|1628|1628| 			if (matrix[i].length > closeClusters[1])
|1629|1629| 				matrix[i].splice(closeClusters[1],1);
|1630|1630| 		}
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
|1626|1626| 			if (matrix[i].length > closeClusters[0])
|1627|1627| 				matrix[i].splice(closeClusters[0],1);
|1628|1628| 			if (matrix[i].length > closeClusters[1])
|1629|    |-				matrix[i].splice(closeClusters[1],1);
|    |1629|+				matrix[i].splice(closeClusters[1], 1);
|1630|1630| 		}
|1631|1631| 		// add a new row of distances to the matrix and the new cluster
|1632|1632| 		clusters.push(newCluster);

binaries/data/mods/public/simulation/helpers/Commands.js
|  43| »   if·(g_Commands[cmd.type])
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|  47| »   »   g_Commands[cmd.type](player,·cmd,·data);
|    | [MAJOR] ESLintBear (no-use-before-define):
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 777| »   »   let·ent·=·pickRandom(cmpRangeManager.GetEntitiesByPlayer(cmd.player).filter(ent·=>·{
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'ent' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1283| ····»   »   »   error("[TryConstructWall]·Expected·last·tower·control·group·to·be·available,·none·found·(1st·pass,·iteration·"·+·i·+·")");
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1284| ····»   »   »   break;
|    | [NORMAL] ESLintBear (no-mixed-spaces-and-tabs):
|    | Mixed spaces and tabs.

binaries/data/mods/public/simulation/helpers/Commands.js
|1514| »   »   »   »   var·lastFormationTemplate·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'lastFormationTemplate' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1593| »   »   var·closeClusters·=·undefined;
|    | [NORMAL] ESLintBear (no-undef-init):
|    | It's not necessary to initialize 'closeClusters' to undefined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1610| »   »   for·(let·i·=·0;·i·<·clusters.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|1624| »   »   for·(let·i·=·0;·i·<·matrix.length;·++i)
|    | [NORMAL] ESLintBear (no-shadow):
|    | 'i' is already declared in the upper scope.

binaries/data/mods/public/simulation/helpers/Commands.js
|  53| var·g_Commands·=·{
|    | [NORMAL] JSHintBear:
|    | 'g_Commands' was used before it was defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 527| »   »   »   »   ····&&·player·!=·+cmd.owner)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
| 715| »   »   »   »   var·cmpGUIInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGUIInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 957| »   »   for·(var·i·=·0;·i·<·length;·++i)
|    | [NORMAL] JSHintBear:
|    | 'i' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
| 970| »   »   var·count·=·0;
|    | [NORMAL] JSHintBear:
|    | 'count' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1117| »   »   var·cmpGuiInterface·=·Engine.QueryInterface(SYSTEM_ENTITY,·IID_GuiInterface);
|    | [NORMAL] JSHintBear:
|    | 'cmpGuiInterface' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1369| »   »   var·piece·=·pieces[j];
|    | [NORMAL] JSHintBear:
|    | 'piece' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1452| »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1491| »   »   »   &&·cmpFormation.GetMemberCount()·==·formation.entities.length)
|    | [NORMAL] JSHintBear:
|    | Misleading line break before '&&'; readers may interpret this as an expression boundary.

binaries/data/mods/public/simulation/helpers/Commands.js
|1517| »   »   »   »   »   var·cmpUnitAI·=·Engine.QueryInterface(ent,·IID_UnitAI);
|    | [NORMAL] JSHintBear:
|    | 'cmpUnitAI' is already defined.

binaries/data/mods/public/simulation/helpers/Commands.js
|1550| »   »   »   var·cmpFormation·=·Engine.QueryInterface(formationEnt,·IID_Formation);
|    | [NORMAL] JSHintBear:
|    | 'cmpFormation' is already defined.
|    | [NORMAL] ESLintBear (dot-notation):
|    | ["Deletable"] is better written in dot notation.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|  73|  73| Controllability.prototype.OnCapturePointsChanged = function(msg)
|  74|  74| {
|  75|  75| 	// Don't bother query and calculating when "Deletable" is fixed.
|  76|    |-	if (this.controllability["Deletable"] && this.controllability["Deletable"].Fixed)
|    |  76|+	if (this.controllability.Deletable && this.controllability["Deletable"].Fixed)
|  77|  77| 		return;
|  78|  78| 
|  79|  79| 	let cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
|    | [NORMAL] ESLintBear (dot-notation):
|    | ["Deletable"] is better written in dot notation.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|  73|  73| Controllability.prototype.OnCapturePointsChanged = function(msg)
|  74|  74| {
|  75|  75| 	// Don't bother query and calculating when "Deletable" is fixed.
|  76|    |-	if (this.controllability["Deletable"] && this.controllability["Deletable"].Fixed)
|    |  76|+	if (this.controllability["Deletable"] && this.controllability.Deletable.Fixed)
|  77|  77| 		return;
|  78|  78| 
|  79|  79| 	let cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/Controllability.js
|  85|  85| 
|  86|  86| 	// Keep in sync with gui/session/unit_actions.js.
|  87|  87| 	this.SetControllability(["Deletable"], msg.capturePoints[owner] >= totalCapturePoints / 2);
|  88|    |-}
|    |  88|+};
|  89|  89| 
|  90|  90| Engine.RegisterComponentType(IID_Controllability, "Controllability", Controllability);

binaries/data/mods/public/simulation/components/Controllability.js
|  76| »   if·(this.controllability["Deletable"]·&&·this.controllability["Deletable"].Fixed)
|    | [NORMAL] JSHintBear:
|    | ['Deletable'] is better written in dot notation.

binaries/data/mods/public/simulation/components/Controllability.js
|  76| »   if·(this.controllability["Deletable"]·&&·this.controllability["Deletable"].Fixed)
|    | [NORMAL] JSHintBear:
|    | ['Deletable'] is better written in dot notation.

binaries/data/mods/public/simulation/components/Controllability.js
|  88| }
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.

binaries/data/mods/public/gui/session/unit_actions.js
| 568| »   »   »   switch·(tradingDetails.type)
|    | [NORMAL] ESLintBear (default-case):
|    | Expected a default case.
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 3.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  50|  50| 	"GetResource": resource => ({
|  51|  51| 		"aiAnalysisInfluenceGroup":
|  52|  52| 			resource == "food" ? "ignore" :
|  53|    |-			resource == "wood" ? "abundant" : "sparse"
|    |  53|+				resource == "wood" ? "abundant" : "sparse"
|  54|  54| 	})
|  55|  55| };
|  56|  56| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPrices' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  58|  58| 
|  59|  59| 
|  60|  60| AddMock(SYSTEM_ENTITY, IID_Barter, {
|  61|    |-	GetPrices: function() {
|    |  61|+	"GetPrices": function() {
|  62|  62| 		return {
|  63|  63| 			"buy": { "food": 150 },
|  64|  64| 			"sell": { "food": 25 }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'PlayerHasMarket' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  64|  64| 			"sell": { "food": 25 }
|  65|  65| 		};
|  66|  66| 	},
|  67|    |-	PlayerHasMarket: function () { return false; }
|    |  67|+	"PlayerHasMarket": function () { return false; }
|  68|  68| });
|  69|  69| 
|  70|  70| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|    | [NORMAL] ESLintBear (space-before-function-paren):
|    | Unexpected space before function parentheses.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  64|  64| 			"sell": { "food": 25 }
|  65|  65| 		};
|  66|  66| 	},
|  67|    |-	PlayerHasMarket: function () { return false; }
|    |  67|+	PlayerHasMarket: function() { return false; }
|  68|  68| });
|  69|  69| 
|  70|  70| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetVictoryConditions' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  68|  68| });
|  69|  69| 
|  70|  70| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|  71|    |-	GetVictoryConditions: () => ["conquest", "wonder"],
|    |  71|+	"GetVictoryConditions": () => ["conquest", "wonder"],
|  72|  72| 	GetAlliedVictory: function() { return false; }
|  73|  73| });
|  74|  74| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetAlliedVictory' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  69|  69| 
|  70|  70| AddMock(SYSTEM_ENTITY, IID_EndGameManager, {
|  71|  71| 	GetVictoryConditions: () => ["conquest", "wonder"],
|  72|    |-	GetAlliedVictory: function() { return false; }
|    |  72|+	"GetAlliedVictory": function() { return false; }
|  73|  73| });
|  74|  74| 
|  75|  75| AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetNumPlayers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  73|  73| });
|  74|  74| 
|  75|  75| AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|  76|    |-	GetNumPlayers: function() { return 2; },
|    |  76|+	"GetNumPlayers": function() { return 2; },
|  77|  77| 	GetPlayerByID: function(id) { TS_ASSERT(id === 0 || id === 1); return 100+id; }
|  78|  78| });
|  79|  79| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPlayerByID' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  74|  74| 
|  75|  75| AddMock(SYSTEM_ENTITY, IID_PlayerManager, {
|  76|  76| 	GetNumPlayers: function() { return 2; },
|  77|    |-	GetPlayerByID: function(id) { TS_ASSERT(id === 0 || id === 1); return 100+id; }
|    |  77|+	"GetPlayerByID": function(id) { TS_ASSERT(id === 0 || id === 1); return 100+id; }
|  78|  78| });
|  79|  79| 
|  80|  80| AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLosVisibility' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  78|  78| });
|  79|  79| 
|  80|  80| AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|  81|    |-	GetLosVisibility: function(ent, player) { return "visible"; },
|    |  81|+	"GetLosVisibility": function(ent, player) { return "visible"; },
|  82|  82| 	GetLosCircular: function() { return false; }
|  83|  83| });
|  84|  84| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLosCircular' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  79|  79| 
|  80|  80| AddMock(SYSTEM_ENTITY, IID_RangeManager, {
|  81|  81| 	GetLosVisibility: function(ent, player) { return "visible"; },
|  82|    |-	GetLosCircular: function() { return false; }
|    |  82|+	"GetLosCircular": function() { return false; }
|  83|  83| });
|  84|  84| 
|  85|  85| AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCurrentTemplateName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  83|  83| });
|  84|  84| 
|  85|  85| AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|  86|    |-	GetCurrentTemplateName: function(ent) { return "example"; },
|    |  86|+	"GetCurrentTemplateName": function(ent) { return "example"; },
|  87|  87| 	GetTemplate: function(name) { return ""; }
|  88|  88| });
|  89|  89| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTemplate' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  84|  84| 
|  85|  85| AddMock(SYSTEM_ENTITY, IID_TemplateManager, {
|  86|  86| 	GetCurrentTemplateName: function(ent) { return "example"; },
|  87|    |-	GetTemplate: function(name) { return ""; }
|    |  87|+	"GetTemplate": function(name) { return ""; }
|  88|  88| });
|  89|  89| 
|  90|  90| AddMock(SYSTEM_ENTITY, IID_Timer, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTime' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  88|  88| });
|  89|  89| 
|  90|  90| AddMock(SYSTEM_ENTITY, IID_Timer, {
|  91|    |-	GetTime: function() { return 0; },
|    |  91|+	"GetTime": function() { return 0; },
|  92|  92| 	SetTimeout: function(ent, iid, funcname, time, data) { return 0; }
|  93|  93| });
|  94|  94| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'SetTimeout' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  89|  89| 
|  90|  90| AddMock(SYSTEM_ENTITY, IID_Timer, {
|  91|  91| 	GetTime: function() { return 0; },
|  92|    |-	SetTimeout: function(ent, iid, funcname, time, data) { return 0; }
|    |  92|+	"SetTimeout": function(ent, iid, funcname, time, data) { return 0; }
|  93|  93| });
|  94|  94| 
|  95|  95| AddMock(100, IID_Player, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  93|  93| });
|  94|  94| 
|  95|  95| AddMock(100, IID_Player, {
|  96|    |-	GetName: function() { return "Player 1"; },
|    |  96|+	"GetName": function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|  98| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCiv' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  94|  94| 
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|    |-	GetCiv: function() { return "gaia"; },
|    |  97|+	"GetCiv": function() { return "gaia"; },
|  98|  98| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetColor' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  98|+	"GetColor": function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  98|+	GetColor: function() { return { "r": 1, g: 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  98|+	GetColor: function() { return { r: 1, "g": 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  98|+	GetColor: function() { return { r: 1, g: 1, "b": 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  98|+	GetColor: function() { return { r: 1, g: 1, b: 1, "a": 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  95|  95| AddMock(100, IID_Player, {
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|    |-	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|    |  98|+	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1 }; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanControlAllUnits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  96|  96| 	GetName: function() { return "Player 1"; },
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|  98| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  99|    |-	CanControlAllUnits: function() { return false; },
|    |  99|+	"CanControlAllUnits": function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
| 102| 102| 	GetMaxPopulation: function() { return 200; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  97|  97| 	GetCiv: function() { return "gaia"; },
|  98|  98| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100|    |-	GetPopulationCount: function() { return 10; },
|    | 100|+	"GetPopulationCount": function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
| 102| 102| 	GetMaxPopulation: function() { return 200; },
| 103| 103| 	GetResourceCounts: function() { return { food: 100 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  98|  98| 	GetColor: function() { return { r: 1, g: 1, b: 1, a: 1}; },
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101|    |-	GetPopulationLimit: function() { return 20; },
|    | 101|+	"GetPopulationLimit": function() { return 20; },
| 102| 102| 	GetMaxPopulation: function() { return 200; },
| 103| 103| 	GetResourceCounts: function() { return { food: 100 }; },
| 104| 104| 	GetPanelEntities: function() { return []; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetMaxPopulation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|  99|  99| 	CanControlAllUnits: function() { return false; },
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
| 102|    |-	GetMaxPopulation: function() { return 200; },
|    | 102|+	"GetMaxPopulation": function() { return 200; },
| 103| 103| 	GetResourceCounts: function() { return { food: 100 }; },
| 104| 104| 	GetPanelEntities: function() { return []; },
| 105| 105| 	IsTrainingBlocked: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetResourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
| 102| 102| 	GetMaxPopulation: function() { return 200; },
| 103|    |-	GetResourceCounts: function() { return { food: 100 }; },
|    | 103|+	"GetResourceCounts": function() { return { food: 100 }; },
| 104| 104| 	GetPanelEntities: function() { return []; },
| 105| 105| 	IsTrainingBlocked: function() { return false; },
| 106| 106| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 100| 100| 	GetPopulationCount: function() { return 10; },
| 101| 101| 	GetPopulationLimit: function() { return 20; },
| 102| 102| 	GetMaxPopulation: function() { return 200; },
| 103|    |-	GetResourceCounts: function() { return { food: 100 }; },
|    | 103|+	GetResourceCounts: function() { return { "food": 100 }; },
| 104| 104| 	GetPanelEntities: function() { return []; },
| 105| 105| 	IsTrainingBlocked: function() { return false; },
| 106| 106| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPanelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 101| 101| 	GetPopulationLimit: function() { return 20; },
| 102| 102| 	GetMaxPopulation: function() { return 200; },
| 103| 103| 	GetResourceCounts: function() { return { food: 100 }; },
| 104|    |-	GetPanelEntities: function() { return []; },
|    | 104|+	"GetPanelEntities": function() { return []; },
| 105| 105| 	IsTrainingBlocked: function() { return false; },
| 106| 106| 	GetState: function() { return "active"; },
| 107| 107| 	GetTeam: function() { return -1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsTrainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 102| 102| 	GetMaxPopulation: function() { return 200; },
| 103| 103| 	GetResourceCounts: function() { return { food: 100 }; },
| 104| 104| 	GetPanelEntities: function() { return []; },
| 105|    |-	IsTrainingBlocked: function() { return false; },
|    | 105|+	"IsTrainingBlocked": function() { return false; },
| 106| 106| 	GetState: function() { return "active"; },
| 107| 107| 	GetTeam: function() { return -1; },
| 108| 108| 	GetLockTeams: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetState' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 103| 103| 	GetResourceCounts: function() { return { food: 100 }; },
| 104| 104| 	GetPanelEntities: function() { return []; },
| 105| 105| 	IsTrainingBlocked: function() { return false; },
| 106|    |-	GetState: function() { return "active"; },
|    | 106|+	"GetState": function() { return "active"; },
| 107| 107| 	GetTeam: function() { return -1; },
| 108| 108| 	GetLockTeams: function() { return false; },
| 109| 109| 	GetCheatsEnabled: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTeam' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 104| 104| 	GetPanelEntities: function() { return []; },
| 105| 105| 	IsTrainingBlocked: function() { return false; },
| 106| 106| 	GetState: function() { return "active"; },
| 107|    |-	GetTeam: function() { return -1; },
|    | 107|+	"GetTeam": function() { return -1; },
| 108| 108| 	GetLockTeams: function() { return false; },
| 109| 109| 	GetCheatsEnabled: function() { return false; },
| 110| 110| 	GetDiplomacy: function() { return [-1, 1]; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLockTeams' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 105| 105| 	IsTrainingBlocked: function() { return false; },
| 106| 106| 	GetState: function() { return "active"; },
| 107| 107| 	GetTeam: function() { return -1; },
| 108|    |-	GetLockTeams: function() { return false; },
|    | 108|+	"GetLockTeams": function() { return false; },
| 109| 109| 	GetCheatsEnabled: function() { return false; },
| 110| 110| 	GetDiplomacy: function() { return [-1, 1]; },
| 111| 111| 	IsAlly: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 106| 106| 	GetState: function() { return "active"; },
| 107| 107| 	GetTeam: function() { return -1; },
| 108| 108| 	GetLockTeams: function() { return false; },
| 109|    |-	GetCheatsEnabled: function() { return false; },
|    | 109|+	"GetCheatsEnabled": function() { return false; },
| 110| 110| 	GetDiplomacy: function() { return [-1, 1]; },
| 111| 111| 	IsAlly: function() { return false; },
| 112| 112| 	IsMutualAlly: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDiplomacy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 107| 107| 	GetTeam: function() { return -1; },
| 108| 108| 	GetLockTeams: function() { return false; },
| 109| 109| 	GetCheatsEnabled: function() { return false; },
| 110|    |-	GetDiplomacy: function() { return [-1, 1]; },
|    | 110|+	"GetDiplomacy": function() { return [-1, 1]; },
| 111| 111| 	IsAlly: function() { return false; },
| 112| 112| 	IsMutualAlly: function() { return false; },
| 113| 113| 	IsNeutral: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 108| 108| 	GetLockTeams: function() { return false; },
| 109| 109| 	GetCheatsEnabled: function() { return false; },
| 110| 110| 	GetDiplomacy: function() { return [-1, 1]; },
| 111|    |-	IsAlly: function() { return false; },
|    | 111|+	"IsAlly": function() { return false; },
| 112| 112| 	IsMutualAlly: function() { return false; },
| 113| 113| 	IsNeutral: function() { return false; },
| 114| 114| 	IsEnemy: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 109| 109| 	GetCheatsEnabled: function() { return false; },
| 110| 110| 	GetDiplomacy: function() { return [-1, 1]; },
| 111| 111| 	IsAlly: function() { return false; },
| 112|    |-	IsMutualAlly: function() { return false; },
|    | 112|+	"IsMutualAlly": function() { return false; },
| 113| 113| 	IsNeutral: function() { return false; },
| 114| 114| 	IsEnemy: function() { return true; },
| 115| 115| 	GetDisabledTemplates: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 110| 110| 	GetDiplomacy: function() { return [-1, 1]; },
| 111| 111| 	IsAlly: function() { return false; },
| 112| 112| 	IsMutualAlly: function() { return false; },
| 113|    |-	IsNeutral: function() { return false; },
|    | 113|+	"IsNeutral": function() { return false; },
| 114| 114| 	IsEnemy: function() { return true; },
| 115| 115| 	GetDisabledTemplates: function() { return {}; },
| 116| 116| 	GetDisabledTechnologies: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 111| 111| 	IsAlly: function() { return false; },
| 112| 112| 	IsMutualAlly: function() { return false; },
| 113| 113| 	IsNeutral: function() { return false; },
| 114|    |-	IsEnemy: function() { return true; },
|    | 114|+	"IsEnemy": function() { return true; },
| 115| 115| 	GetDisabledTemplates: function() { return {}; },
| 116| 116| 	GetDisabledTechnologies: function() { return {}; },
| 117| 117| 	GetSpyCostMultiplier: function() { return 1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 112| 112| 	IsMutualAlly: function() { return false; },
| 113| 113| 	IsNeutral: function() { return false; },
| 114| 114| 	IsEnemy: function() { return true; },
| 115|    |-	GetDisabledTemplates: function() { return {}; },
|    | 115|+	"GetDisabledTemplates": function() { return {}; },
| 116| 116| 	GetDisabledTechnologies: function() { return {}; },
| 117| 117| 	GetSpyCostMultiplier: function() { return 1; },
| 118| 118| 	HasSharedDropsites: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 113| 113| 	IsNeutral: function() { return false; },
| 114| 114| 	IsEnemy: function() { return true; },
| 115| 115| 	GetDisabledTemplates: function() { return {}; },
| 116|    |-	GetDisabledTechnologies: function() { return {}; },
|    | 116|+	"GetDisabledTechnologies": function() { return {}; },
| 117| 117| 	GetSpyCostMultiplier: function() { return 1; },
| 118| 118| 	HasSharedDropsites: function() { return false; },
| 119| 119| 	HasSharedLos: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSpyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 114| 114| 	IsEnemy: function() { return true; },
| 115| 115| 	GetDisabledTemplates: function() { return {}; },
| 116| 116| 	GetDisabledTechnologies: function() { return {}; },
| 117|    |-	GetSpyCostMultiplier: function() { return 1; },
|    | 117|+	"GetSpyCostMultiplier": function() { return 1; },
| 118| 118| 	HasSharedDropsites: function() { return false; },
| 119| 119| 	HasSharedLos: function() { return false; }
| 120| 120| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 115| 115| 	GetDisabledTemplates: function() { return {}; },
| 116| 116| 	GetDisabledTechnologies: function() { return {}; },
| 117| 117| 	GetSpyCostMultiplier: function() { return 1; },
| 118|    |-	HasSharedDropsites: function() { return false; },
|    | 118|+	"HasSharedDropsites": function() { return false; },
| 119| 119| 	HasSharedLos: function() { return false; }
| 120| 120| });
| 121| 121| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 116| 116| 	GetDisabledTechnologies: function() { return {}; },
| 117| 117| 	GetSpyCostMultiplier: function() { return 1; },
| 118| 118| 	HasSharedDropsites: function() { return false; },
| 119|    |-	HasSharedLos: function() { return false; }
|    | 119|+	"HasSharedLos": function() { return false; }
| 120| 120| });
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 120| 120| });
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123|    |-	GetLimits: function() { return {"Foo": 10}; },
|    | 123|+	"GetLimits": function() { return {"Foo": 10}; },
| 124| 124| 	GetCounts: function() { return {"Foo": 5}; },
| 125| 125| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 126| 126| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 120| 120| });
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123|    |-	GetLimits: function() { return {"Foo": 10}; },
|    | 123|+	GetLimits: function() { return { "Foo": 10}; },
| 124| 124| 	GetCounts: function() { return {"Foo": 5}; },
| 125| 125| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 126| 126| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 120| 120| });
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123|    |-	GetLimits: function() { return {"Foo": 10}; },
|    | 123|+	GetLimits: function() { return {"Foo": 10 }; },
| 124| 124| 	GetCounts: function() { return {"Foo": 5}; },
| 125| 125| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 126| 126| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123| 123| 	GetLimits: function() { return {"Foo": 10}; },
| 124|    |-	GetCounts: function() { return {"Foo": 5}; },
|    | 124|+	"GetCounts": function() { return {"Foo": 5}; },
| 125| 125| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 126| 126| });
| 127| 127| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123| 123| 	GetLimits: function() { return {"Foo": 10}; },
| 124|    |-	GetCounts: function() { return {"Foo": 5}; },
|    | 124|+	GetCounts: function() { return { "Foo": 5}; },
| 125| 125| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 126| 126| });
| 127| 127| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 121| 121| 
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123| 123| 	GetLimits: function() { return {"Foo": 10}; },
| 124|    |-	GetCounts: function() { return {"Foo": 5}; },
|    | 124|+	GetCounts: function() { return {"Foo": 5 }; },
| 125| 125| 	GetLimitChangers: function() {return {"Foo": {}}; }
| 126| 126| });
| 127| 127| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123| 123| 	GetLimits: function() { return {"Foo": 10}; },
| 124| 124| 	GetCounts: function() { return {"Foo": 5}; },
| 125|    |-	GetLimitChangers: function() {return {"Foo": {}}; }
|    | 125|+	"GetLimitChangers": function() {return {"Foo": {}}; }
| 126| 126| });
| 127| 127| 
| 128| 128| AddMock(100, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123| 123| 	GetLimits: function() { return {"Foo": 10}; },
| 124| 124| 	GetCounts: function() { return {"Foo": 5}; },
| 125|    |-	GetLimitChangers: function() {return {"Foo": {}}; }
|    | 125|+	GetLimitChangers: function() {return { "Foo": {}}; }
| 126| 126| });
| 127| 127| 
| 128| 128| AddMock(100, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 122| 122| AddMock(100, IID_EntityLimits, {
| 123| 123| 	GetLimits: function() { return {"Foo": 10}; },
| 124| 124| 	GetCounts: function() { return {"Foo": 5}; },
| 125|    |-	GetLimitChangers: function() {return {"Foo": {}}; }
|    | 125|+	GetLimitChangers: function() {return {"Foo": {} }; }
| 126| 126| });
| 127| 127| 
| 128| 128| AddMock(100, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetBasicStatistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 135| 135| });
| 136| 136| 
| 137| 137| AddMock(100, IID_StatisticsTracker, {
| 138|    |-	GetBasicStatistics: function() {
|    | 138|+	"GetBasicStatistics": function() {
| 139| 139| 		return {
| 140| 140| 			"resourcesGathered": {
| 141| 141| 				"food": 100,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSequences' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 147| 147| 			"percentMapExplored": 10
| 148| 148| 		};
| 149| 149| 	},
| 150|    |-	GetSequences: function() {
|    | 150|+	"GetSequences": function() {
| 151| 151| 		return {
| 152| 152| 			"unitsTrained": [0, 10],
| 153| 153| 			"unitsLost": [0, 42],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseTrainedUnitsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 172| 172| 			"teamPeakPercentOfMapControlled": [0, 10]
| 173| 173| 		};
| 174| 174| 	},
| 175|    |-	IncreaseTrainedUnitsCounter: function() { return 1; },
|    | 175|+	"IncreaseTrainedUnitsCounter": function() { return 1; },
| 176| 176| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 177| 177| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 178| 178| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseConstructedBuildingsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 173| 173| 		};
| 174| 174| 	},
| 175| 175| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 176|    |-	IncreaseConstructedBuildingsCounter: function() { return 1; },
|    | 176|+	"IncreaseConstructedBuildingsCounter": function() { return 1; },
| 177| 177| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 178| 178| });
| 179| 179| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseBuiltCivCentresCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 174| 174| 	},
| 175| 175| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 176| 176| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 177|    |-	IncreaseBuiltCivCentresCounter: function() { return 1; }
|    | 177|+	"IncreaseBuiltCivCentresCounter": function() { return 1; }
| 178| 178| });
| 179| 179| 
| 180| 180| AddMock(101, IID_Player, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 178| 178| });
| 179| 179| 
| 180| 180| AddMock(101, IID_Player, {
| 181|    |-	GetName: function() { return "Player 2"; },
|    | 181|+	"GetName": function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183| 183| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCiv' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 179| 179| 
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182|    |-	GetCiv: function() { return "mace"; },
|    | 182|+	"GetCiv": function() { return "mace"; },
| 183| 183| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetColor' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 183|+	"GetColor": function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 183|+	GetColor: function() { return { "r": 1, g: 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 183|+	GetColor: function() { return { r: 1, "g": 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 183|+	GetColor: function() { return { r: 1, g: 0, "b": 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 183|+	GetColor: function() { return { r: 1, g: 0, b: 0, "a": 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 180| 180| AddMock(101, IID_Player, {
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183|    |-	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
|    | 183|+	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1 }; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'CanControlAllUnits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 181| 181| 	GetName: function() { return "Player 2"; },
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183| 183| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 184|    |-	CanControlAllUnits: function() { return true; },
|    | 184|+	"CanControlAllUnits": function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
| 187| 187| 	GetMaxPopulation: function() { return 300; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 182| 182| 	GetCiv: function() { return "mace"; },
| 183| 183| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185|    |-	GetPopulationCount: function() { return 40; },
|    | 185|+	"GetPopulationCount": function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
| 187| 187| 	GetMaxPopulation: function() { return 300; },
| 188| 188| 	GetResourceCounts: function() { return { food: 200 }; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPopulationLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 183| 183| 	GetColor: function() { return { r: 1, g: 0, b: 0, a: 1}; },
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186|    |-	GetPopulationLimit: function() { return 30; },
|    | 186|+	"GetPopulationLimit": function() { return 30; },
| 187| 187| 	GetMaxPopulation: function() { return 300; },
| 188| 188| 	GetResourceCounts: function() { return { food: 200 }; },
| 189| 189| 	GetPanelEntities: function() { return []; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetMaxPopulation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 184| 184| 	CanControlAllUnits: function() { return true; },
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
| 187|    |-	GetMaxPopulation: function() { return 300; },
|    | 187|+	"GetMaxPopulation": function() { return 300; },
| 188| 188| 	GetResourceCounts: function() { return { food: 200 }; },
| 189| 189| 	GetPanelEntities: function() { return []; },
| 190| 190| 	IsTrainingBlocked: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetResourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
| 187| 187| 	GetMaxPopulation: function() { return 300; },
| 188|    |-	GetResourceCounts: function() { return { food: 200 }; },
|    | 188|+	"GetResourceCounts": function() { return { food: 200 }; },
| 189| 189| 	GetPanelEntities: function() { return []; },
| 190| 190| 	IsTrainingBlocked: function() { return false; },
| 191| 191| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 185| 185| 	GetPopulationCount: function() { return 40; },
| 186| 186| 	GetPopulationLimit: function() { return 30; },
| 187| 187| 	GetMaxPopulation: function() { return 300; },
| 188|    |-	GetResourceCounts: function() { return { food: 200 }; },
|    | 188|+	GetResourceCounts: function() { return { "food": 200 }; },
| 189| 189| 	GetPanelEntities: function() { return []; },
| 190| 190| 	IsTrainingBlocked: function() { return false; },
| 191| 191| 	GetState: function() { return "active"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPanelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 186| 186| 	GetPopulationLimit: function() { return 30; },
| 187| 187| 	GetMaxPopulation: function() { return 300; },
| 188| 188| 	GetResourceCounts: function() { return { food: 200 }; },
| 189|    |-	GetPanelEntities: function() { return []; },
|    | 189|+	"GetPanelEntities": function() { return []; },
| 190| 190| 	IsTrainingBlocked: function() { return false; },
| 191| 191| 	GetState: function() { return "active"; },
| 192| 192| 	GetTeam: function() { return -1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsTrainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 187| 187| 	GetMaxPopulation: function() { return 300; },
| 188| 188| 	GetResourceCounts: function() { return { food: 200 }; },
| 189| 189| 	GetPanelEntities: function() { return []; },
| 190|    |-	IsTrainingBlocked: function() { return false; },
|    | 190|+	"IsTrainingBlocked": function() { return false; },
| 191| 191| 	GetState: function() { return "active"; },
| 192| 192| 	GetTeam: function() { return -1; },
| 193| 193| 	GetLockTeams: function() {return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetState' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 188| 188| 	GetResourceCounts: function() { return { food: 200 }; },
| 189| 189| 	GetPanelEntities: function() { return []; },
| 190| 190| 	IsTrainingBlocked: function() { return false; },
| 191|    |-	GetState: function() { return "active"; },
|    | 191|+	"GetState": function() { return "active"; },
| 192| 192| 	GetTeam: function() { return -1; },
| 193| 193| 	GetLockTeams: function() {return false; },
| 194| 194| 	GetCheatsEnabled: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTeam' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 189| 189| 	GetPanelEntities: function() { return []; },
| 190| 190| 	IsTrainingBlocked: function() { return false; },
| 191| 191| 	GetState: function() { return "active"; },
| 192|    |-	GetTeam: function() { return -1; },
|    | 192|+	"GetTeam": function() { return -1; },
| 193| 193| 	GetLockTeams: function() {return false; },
| 194| 194| 	GetCheatsEnabled: function() { return false; },
| 195| 195| 	GetDiplomacy: function() { return [-1, 1]; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLockTeams' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 190| 190| 	IsTrainingBlocked: function() { return false; },
| 191| 191| 	GetState: function() { return "active"; },
| 192| 192| 	GetTeam: function() { return -1; },
| 193|    |-	GetLockTeams: function() {return false; },
|    | 193|+	"GetLockTeams": function() {return false; },
| 194| 194| 	GetCheatsEnabled: function() { return false; },
| 195| 195| 	GetDiplomacy: function() { return [-1, 1]; },
| 196| 196| 	IsAlly: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 191| 191| 	GetState: function() { return "active"; },
| 192| 192| 	GetTeam: function() { return -1; },
| 193| 193| 	GetLockTeams: function() {return false; },
| 194|    |-	GetCheatsEnabled: function() { return false; },
|    | 194|+	"GetCheatsEnabled": function() { return false; },
| 195| 195| 	GetDiplomacy: function() { return [-1, 1]; },
| 196| 196| 	IsAlly: function() { return true; },
| 197| 197| 	IsMutualAlly: function() {return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDiplomacy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 192| 192| 	GetTeam: function() { return -1; },
| 193| 193| 	GetLockTeams: function() {return false; },
| 194| 194| 	GetCheatsEnabled: function() { return false; },
| 195|    |-	GetDiplomacy: function() { return [-1, 1]; },
|    | 195|+	"GetDiplomacy": function() { return [-1, 1]; },
| 196| 196| 	IsAlly: function() { return true; },
| 197| 197| 	IsMutualAlly: function() {return false; },
| 198| 198| 	IsNeutral: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 193| 193| 	GetLockTeams: function() {return false; },
| 194| 194| 	GetCheatsEnabled: function() { return false; },
| 195| 195| 	GetDiplomacy: function() { return [-1, 1]; },
| 196|    |-	IsAlly: function() { return true; },
|    | 196|+	"IsAlly": function() { return true; },
| 197| 197| 	IsMutualAlly: function() {return false; },
| 198| 198| 	IsNeutral: function() { return false; },
| 199| 199| 	IsEnemy: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 194| 194| 	GetCheatsEnabled: function() { return false; },
| 195| 195| 	GetDiplomacy: function() { return [-1, 1]; },
| 196| 196| 	IsAlly: function() { return true; },
| 197|    |-	IsMutualAlly: function() {return false; },
|    | 197|+	"IsMutualAlly": function() {return false; },
| 198| 198| 	IsNeutral: function() { return false; },
| 199| 199| 	IsEnemy: function() { return false; },
| 200| 200| 	GetDisabledTemplates: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 195| 195| 	GetDiplomacy: function() { return [-1, 1]; },
| 196| 196| 	IsAlly: function() { return true; },
| 197| 197| 	IsMutualAlly: function() {return false; },
| 198|    |-	IsNeutral: function() { return false; },
|    | 198|+	"IsNeutral": function() { return false; },
| 199| 199| 	IsEnemy: function() { return false; },
| 200| 200| 	GetDisabledTemplates: function() { return {}; },
| 201| 201| 	GetDisabledTechnologies: function() { return {}; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 196| 196| 	IsAlly: function() { return true; },
| 197| 197| 	IsMutualAlly: function() {return false; },
| 198| 198| 	IsNeutral: function() { return false; },
| 199|    |-	IsEnemy: function() { return false; },
|    | 199|+	"IsEnemy": function() { return false; },
| 200| 200| 	GetDisabledTemplates: function() { return {}; },
| 201| 201| 	GetDisabledTechnologies: function() { return {}; },
| 202| 202| 	GetSpyCostMultiplier: function() { return 1; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 197| 197| 	IsMutualAlly: function() {return false; },
| 198| 198| 	IsNeutral: function() { return false; },
| 199| 199| 	IsEnemy: function() { return false; },
| 200|    |-	GetDisabledTemplates: function() { return {}; },
|    | 200|+	"GetDisabledTemplates": function() { return {}; },
| 201| 201| 	GetDisabledTechnologies: function() { return {}; },
| 202| 202| 	GetSpyCostMultiplier: function() { return 1; },
| 203| 203| 	HasSharedDropsites: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetDisabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 198| 198| 	IsNeutral: function() { return false; },
| 199| 199| 	IsEnemy: function() { return false; },
| 200| 200| 	GetDisabledTemplates: function() { return {}; },
| 201|    |-	GetDisabledTechnologies: function() { return {}; },
|    | 201|+	"GetDisabledTechnologies": function() { return {}; },
| 202| 202| 	GetSpyCostMultiplier: function() { return 1; },
| 203| 203| 	HasSharedDropsites: function() { return false; },
| 204| 204| 	HasSharedLos: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSpyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 199| 199| 	IsEnemy: function() { return false; },
| 200| 200| 	GetDisabledTemplates: function() { return {}; },
| 201| 201| 	GetDisabledTechnologies: function() { return {}; },
| 202|    |-	GetSpyCostMultiplier: function() { return 1; },
|    | 202|+	"GetSpyCostMultiplier": function() { return 1; },
| 203| 203| 	HasSharedDropsites: function() { return false; },
| 204| 204| 	HasSharedLos: function() { return false; }
| 205| 205| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 200| 200| 	GetDisabledTemplates: function() { return {}; },
| 201| 201| 	GetDisabledTechnologies: function() { return {}; },
| 202| 202| 	GetSpyCostMultiplier: function() { return 1; },
| 203|    |-	HasSharedDropsites: function() { return false; },
|    | 203|+	"HasSharedDropsites": function() { return false; },
| 204| 204| 	HasSharedLos: function() { return false; }
| 205| 205| });
| 206| 206| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 201| 201| 	GetDisabledTechnologies: function() { return {}; },
| 202| 202| 	GetSpyCostMultiplier: function() { return 1; },
| 203| 203| 	HasSharedDropsites: function() { return false; },
| 204|    |-	HasSharedLos: function() { return false; }
|    | 204|+	"HasSharedLos": function() { return false; }
| 205| 205| });
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 205| 205| });
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208|    |-	GetLimits: function() { return {"Bar": 20}; },
|    | 208|+	"GetLimits": function() { return {"Bar": 20}; },
| 209| 209| 	GetCounts: function() { return {"Bar": 0}; },
| 210| 210| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 211| 211| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 205| 205| });
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208|    |-	GetLimits: function() { return {"Bar": 20}; },
|    | 208|+	GetLimits: function() { return { "Bar": 20}; },
| 209| 209| 	GetCounts: function() { return {"Bar": 0}; },
| 210| 210| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 211| 211| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 205| 205| });
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208|    |-	GetLimits: function() { return {"Bar": 20}; },
|    | 208|+	GetLimits: function() { return {"Bar": 20 }; },
| 209| 209| 	GetCounts: function() { return {"Bar": 0}; },
| 210| 210| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 211| 211| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208| 208| 	GetLimits: function() { return {"Bar": 20}; },
| 209|    |-	GetCounts: function() { return {"Bar": 0}; },
|    | 209|+	"GetCounts": function() { return {"Bar": 0}; },
| 210| 210| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 211| 211| });
| 212| 212| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208| 208| 	GetLimits: function() { return {"Bar": 20}; },
| 209|    |-	GetCounts: function() { return {"Bar": 0}; },
|    | 209|+	GetCounts: function() { return { "Bar": 0}; },
| 210| 210| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 211| 211| });
| 212| 212| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 206| 206| 
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208| 208| 	GetLimits: function() { return {"Bar": 20}; },
| 209|    |-	GetCounts: function() { return {"Bar": 0}; },
|    | 209|+	GetCounts: function() { return {"Bar": 0 }; },
| 210| 210| 	GetLimitChangers: function() {return {"Bar": {}}; }
| 211| 211| });
| 212| 212| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208| 208| 	GetLimits: function() { return {"Bar": 20}; },
| 209| 209| 	GetCounts: function() { return {"Bar": 0}; },
| 210|    |-	GetLimitChangers: function() {return {"Bar": {}}; }
|    | 210|+	"GetLimitChangers": function() {return {"Bar": {}}; }
| 211| 211| });
| 212| 212| 
| 213| 213| AddMock(101, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208| 208| 	GetLimits: function() { return {"Bar": 20}; },
| 209| 209| 	GetCounts: function() { return {"Bar": 0}; },
| 210|    |-	GetLimitChangers: function() {return {"Bar": {}}; }
|    | 210|+	GetLimitChangers: function() {return { "Bar": {}}; }
| 211| 211| });
| 212| 212| 
| 213| 213| AddMock(101, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 207| 207| AddMock(101, IID_EntityLimits, {
| 208| 208| 	GetLimits: function() { return {"Bar": 20}; },
| 209| 209| 	GetCounts: function() { return {"Bar": 0}; },
| 210|    |-	GetLimitChangers: function() {return {"Bar": {}}; }
|    | 210|+	GetLimitChangers: function() {return {"Bar": {} }; }
| 211| 211| });
| 212| 212| 
| 213| 213| AddMock(101, IID_TechnologyManager, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetBasicStatistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 220| 220| });
| 221| 221| 
| 222| 222| AddMock(101, IID_StatisticsTracker, {
| 223|    |-	GetBasicStatistics: function() {
|    | 223|+	"GetBasicStatistics": function() {
| 224| 224| 		return {
| 225| 225| 			"resourcesGathered": {
| 226| 226| 				"food": 100,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSequences' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 232| 232| 			"percentMapExplored": 10
| 233| 233| 		};
| 234| 234| 	},
| 235|    |-	GetSequences: function() {
|    | 235|+	"GetSequences": function() {
| 236| 236| 		return {
| 237| 237| 			"unitsTrained": [0, 10],
| 238| 238| 			"unitsLost": [0, 9],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseTrainedUnitsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 257| 257| 			"teamPeakPercentOfMapControlled": [0, 10]
| 258| 258| 		};
| 259| 259| 	},
| 260|    |-	IncreaseTrainedUnitsCounter: function() { return 1; },
|    | 260|+	"IncreaseTrainedUnitsCounter": function() { return 1; },
| 261| 261| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 262| 262| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 263| 263| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseConstructedBuildingsCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 258| 258| 		};
| 259| 259| 	},
| 260| 260| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 261|    |-	IncreaseConstructedBuildingsCounter: function() { return 1; },
|    | 261|+	"IncreaseConstructedBuildingsCounter": function() { return 1; },
| 262| 262| 	IncreaseBuiltCivCentresCounter: function() { return 1; }
| 263| 263| });
| 264| 264| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IncreaseBuiltCivCentresCounter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 259| 259| 	},
| 260| 260| 	IncreaseTrainedUnitsCounter: function() { return 1; },
| 261| 261| 	IncreaseConstructedBuildingsCounter: function() { return 1; },
| 262|    |-	IncreaseBuiltCivCentresCounter: function() { return 1; }
|    | 262|+	"IncreaseBuiltCivCentresCounter": function() { return 1; }
| 263| 263| });
| 264| 264| 
| 265| 265| // Note: property order matters when using TS_ASSERT_UNEVAL_EQUALS,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'players' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 266| 266| //	because uneval preserves property order. So make sure this object
| 267| 267| //	matches the ordering in GuiInterface.
| 268| 268| TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), {
| 269|    |-	players: [
|    | 269|+	"players": [
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'name' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 268| 268| TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), {
| 269| 269| 	players: [
| 270| 270| 		{
| 271|    |-			name: "Player 1",
|    | 271|+			"name": "Player 1",
| 272| 272| 			civ: "gaia",
| 273| 273| 			color: { r:1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'civ' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 269| 269| 	players: [
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272|    |-			civ: "gaia",
|    | 272|+			"civ": "gaia",
| 273| 273| 			color: { r:1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'color' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			"color": { r:1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { "r":1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r: 1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r:1, "g":1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r:1, g: 1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r:1, g:1, "b":1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r:1, g:1, b: 1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r:1, g:1, b:1, "a":1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 270| 270| 		{
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273|    |-			color: { r:1, g:1, b:1, a:1 },
|    | 273|+			color: { r:1, g:1, b:1, a: 1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'controlsAll' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 271| 271| 			name: "Player 1",
| 272| 272| 			civ: "gaia",
| 273| 273| 			color: { r:1, g:1, b:1, a:1 },
| 274|    |-			controlsAll: false,
|    | 274|+			"controlsAll": false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
| 277| 277| 			popMax: 200,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 272| 272| 			civ: "gaia",
| 273| 273| 			color: { r:1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275|    |-			popCount: 10,
|    | 275|+			"popCount": 10,
| 276| 276| 			popLimit: 20,
| 277| 277| 			popMax: 200,
| 278| 278| 			panelEntities: [],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 273| 273| 			color: { r:1, g:1, b:1, a:1 },
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276|    |-			popLimit: 20,
|    | 276|+			"popLimit": 20,
| 277| 277| 			popMax: 200,
| 278| 278| 			panelEntities: [],
| 279| 279| 			resourceCounts: { food: 100 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popMax' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 274| 274| 			controlsAll: false,
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
| 277|    |-			popMax: 200,
|    | 277|+			"popMax": 200,
| 278| 278| 			panelEntities: [],
| 279| 279| 			resourceCounts: { food: 100 },
| 280| 280| 			trainingBlocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'panelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 275| 275| 			popCount: 10,
| 276| 276| 			popLimit: 20,
| 277| 277| 			popMax: 200,
| 278|    |-			panelEntities: [],
|    | 278|+			"panelEntities": [],
| 279| 279| 			resourceCounts: { food: 100 },
| 280| 280| 			trainingBlocked: false,
| 281| 281| 			state: "active",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 276| 276| 			popLimit: 20,
| 277| 277| 			popMax: 200,
| 278| 278| 			panelEntities: [],
| 279|    |-			resourceCounts: { food: 100 },
|    | 279|+			"resourceCounts": { food: 100 },
| 280| 280| 			trainingBlocked: false,
| 281| 281| 			state: "active",
| 282| 282| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 276| 276| 			popLimit: 20,
| 277| 277| 			popMax: 200,
| 278| 278| 			panelEntities: [],
| 279|    |-			resourceCounts: { food: 100 },
|    | 279|+			resourceCounts: { "food": 100 },
| 280| 280| 			trainingBlocked: false,
| 281| 281| 			state: "active",
| 282| 282| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'trainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 277| 277| 			popMax: 200,
| 278| 278| 			panelEntities: [],
| 279| 279| 			resourceCounts: { food: 100 },
| 280|    |-			trainingBlocked: false,
|    | 280|+			"trainingBlocked": false,
| 281| 281| 			state: "active",
| 282| 282| 			team: -1,
| 283| 283| 			teamsLocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'state' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 278| 278| 			panelEntities: [],
| 279| 279| 			resourceCounts: { food: 100 },
| 280| 280| 			trainingBlocked: false,
| 281|    |-			state: "active",
|    | 281|+			"state": "active",
| 282| 282| 			team: -1,
| 283| 283| 			teamsLocked: false,
| 284| 284| 			cheatsEnabled: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'team' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 279| 279| 			resourceCounts: { food: 100 },
| 280| 280| 			trainingBlocked: false,
| 281| 281| 			state: "active",
| 282|    |-			team: -1,
|    | 282|+			"team": -1,
| 283| 283| 			teamsLocked: false,
| 284| 284| 			cheatsEnabled: false,
| 285| 285| 			disabledTemplates: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'teamsLocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 280| 280| 			trainingBlocked: false,
| 281| 281| 			state: "active",
| 282| 282| 			team: -1,
| 283|    |-			teamsLocked: false,
|    | 283|+			"teamsLocked": false,
| 284| 284| 			cheatsEnabled: false,
| 285| 285| 			disabledTemplates: {},
| 286| 286| 			disabledTechnologies: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'cheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 281| 281| 			state: "active",
| 282| 282| 			team: -1,
| 283| 283| 			teamsLocked: false,
| 284|    |-			cheatsEnabled: false,
|    | 284|+			"cheatsEnabled": false,
| 285| 285| 			disabledTemplates: {},
| 286| 286| 			disabledTechnologies: {},
| 287| 287| 			hasSharedDropsites: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 282| 282| 			team: -1,
| 283| 283| 			teamsLocked: false,
| 284| 284| 			cheatsEnabled: false,
| 285|    |-			disabledTemplates: {},
|    | 285|+			"disabledTemplates": {},
| 286| 286| 			disabledTechnologies: {},
| 287| 287| 			hasSharedDropsites: false,
| 288| 288| 			hasSharedLos: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 283| 283| 			teamsLocked: false,
| 284| 284| 			cheatsEnabled: false,
| 285| 285| 			disabledTemplates: {},
| 286|    |-			disabledTechnologies: {},
|    | 286|+			"disabledTechnologies": {},
| 287| 287| 			hasSharedDropsites: false,
| 288| 288| 			hasSharedLos: false,
| 289| 289| 			spyCostMultiplier: 1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 284| 284| 			cheatsEnabled: false,
| 285| 285| 			disabledTemplates: {},
| 286| 286| 			disabledTechnologies: {},
| 287|    |-			hasSharedDropsites: false,
|    | 287|+			"hasSharedDropsites": false,
| 288| 288| 			hasSharedLos: false,
| 289| 289| 			spyCostMultiplier: 1,
| 290| 290| 			phase: "village",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 285| 285| 			disabledTemplates: {},
| 286| 286| 			disabledTechnologies: {},
| 287| 287| 			hasSharedDropsites: false,
| 288|    |-			hasSharedLos: false,
|    | 288|+			"hasSharedLos": false,
| 289| 289| 			spyCostMultiplier: 1,
| 290| 290| 			phase: "village",
| 291| 291| 			isAlly: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'spyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 286| 286| 			disabledTechnologies: {},
| 287| 287| 			hasSharedDropsites: false,
| 288| 288| 			hasSharedLos: false,
| 289|    |-			spyCostMultiplier: 1,
|    | 289|+			"spyCostMultiplier": 1,
| 290| 290| 			phase: "village",
| 291| 291| 			isAlly: [false, false],
| 292| 292| 			isMutualAlly: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'phase' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 287| 287| 			hasSharedDropsites: false,
| 288| 288| 			hasSharedLos: false,
| 289| 289| 			spyCostMultiplier: 1,
| 290|    |-			phase: "village",
|    | 290|+			"phase": "village",
| 291| 291| 			isAlly: [false, false],
| 292| 292| 			isMutualAlly: [false, false],
| 293| 293| 			isNeutral: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 288| 288| 			hasSharedLos: false,
| 289| 289| 			spyCostMultiplier: 1,
| 290| 290| 			phase: "village",
| 291|    |-			isAlly: [false, false],
|    | 291|+			"isAlly": [false, false],
| 292| 292| 			isMutualAlly: [false, false],
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 289| 289| 			spyCostMultiplier: 1,
| 290| 290| 			phase: "village",
| 291| 291| 			isAlly: [false, false],
| 292|    |-			isMutualAlly: [false, false],
|    | 292|+			"isMutualAlly": [false, false],
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 290| 290| 			phase: "village",
| 291| 291| 			isAlly: [false, false],
| 292| 292| 			isMutualAlly: [false, false],
| 293|    |-			isNeutral: [false, false],
|    | 293|+			"isNeutral": [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 291| 291| 			isAlly: [false, false],
| 292| 292| 			isMutualAlly: [false, false],
| 293| 293| 			isNeutral: [false, false],
| 294|    |-			isEnemy: [true, true],
|    | 294|+			"isEnemy": [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 292| 292| 			isMutualAlly: [false, false],
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295|    |-			entityLimits: {"Foo": 10},
|    | 295|+			"entityLimits": {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 292| 292| 			isMutualAlly: [false, false],
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295|    |-			entityLimits: {"Foo": 10},
|    | 295|+			entityLimits: { "Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 292| 292| 			isMutualAlly: [false, false],
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295|    |-			entityLimits: {"Foo": 10},
|    | 295|+			entityLimits: {"Foo": 10 },
| 296| 296| 			entityCounts: {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296|    |-			entityCounts: {"Foo": 5},
|    | 296|+			"entityCounts": {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296|    |-			entityCounts: {"Foo": 5},
|    | 296|+			entityCounts: { "Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 293| 293| 			isNeutral: [false, false],
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296|    |-			entityCounts: {"Foo": 5},
|    | 296|+			entityCounts: {"Foo": 5 },
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297|    |-			entityLimitChangers: {"Foo": {}},
|    | 297|+			"entityLimitChangers": {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
| 300| 300| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297|    |-			entityLimitChangers: {"Foo": {}},
|    | 297|+			entityLimitChangers: { "Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
| 300| 300| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 294| 294| 			isEnemy: [true, true],
| 295| 295| 			entityLimits: {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297|    |-			entityLimitChangers: {"Foo": {}},
|    | 297|+			entityLimitChangers: {"Foo": {} },
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
| 300| 300| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchQueued' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 295| 295| 			entityLimits: {"Foo": 10},
| 296| 296| 			entityCounts: {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298|    |-			researchQueued: new Map(),
|    | 298|+			"researchQueued": new Map(),
| 299| 299| 			researchStarted: new Set(),
| 300| 300| 			researchedTechs: new Set(),
| 301| 301| 			classCounts: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchStarted' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 296| 296| 			entityCounts: {"Foo": 5},
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299|    |-			researchStarted: new Set(),
|    | 299|+			"researchStarted": new Set(),
| 300| 300| 			researchedTechs: new Set(),
| 301| 301| 			classCounts: {},
| 302| 302| 			typeCountsByClass: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchedTechs' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 297| 297| 			entityLimitChangers: {"Foo": {}},
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
| 300|    |-			researchedTechs: new Set(),
|    | 300|+			"researchedTechs": new Set(),
| 301| 301| 			classCounts: {},
| 302| 302| 			typeCountsByClass: {},
| 303| 303| 			canBarter: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'classCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 298| 298| 			researchQueued: new Map(),
| 299| 299| 			researchStarted: new Set(),
| 300| 300| 			researchedTechs: new Set(),
| 301|    |-			classCounts: {},
|    | 301|+			"classCounts": {},
| 302| 302| 			typeCountsByClass: {},
| 303| 303| 			canBarter: false,
| 304| 304| 			barterPrices: {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'typeCountsByClass' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 299| 299| 			researchStarted: new Set(),
| 300| 300| 			researchedTechs: new Set(),
| 301| 301| 			classCounts: {},
| 302|    |-			typeCountsByClass: {},
|    | 302|+			"typeCountsByClass": {},
| 303| 303| 			canBarter: false,
| 304| 304| 			barterPrices: {
| 305| 305| 				"buy": { "food": 150 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'canBarter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 300| 300| 			researchedTechs: new Set(),
| 301| 301| 			classCounts: {},
| 302| 302| 			typeCountsByClass: {},
| 303|    |-			canBarter: false,
|    | 303|+			"canBarter": false,
| 304| 304| 			barterPrices: {
| 305| 305| 				"buy": { "food": 150 },
| 306| 306| 				"sell": { "food": 25 }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'barterPrices' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 301| 301| 			classCounts: {},
| 302| 302| 			typeCountsByClass: {},
| 303| 303| 			canBarter: false,
| 304|    |-			barterPrices: {
|    | 304|+			"barterPrices": {
| 305| 305| 				"buy": { "food": 150 },
| 306| 306| 				"sell": { "food": 25 }
| 307| 307| 			},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'statistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 305| 305| 				"buy": { "food": 150 },
| 306| 306| 				"sell": { "food": 25 }
| 307| 307| 			},
| 308|    |-			statistics: {
|    | 308|+			"statistics": {
| 309| 309| 				resourcesGathered: {
| 310| 310| 					food: 100,
| 311| 311| 					wood: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourcesGathered' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 306| 306| 				"sell": { "food": 25 }
| 307| 307| 			},
| 308| 308| 			statistics: {
| 309|    |-				resourcesGathered: {
|    | 309|+				"resourcesGathered": {
| 310| 310| 					food: 100,
| 311| 311| 					wood: 0,
| 312| 312| 					metal: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 307| 307| 			},
| 308| 308| 			statistics: {
| 309| 309| 				resourcesGathered: {
| 310|    |-					food: 100,
|    | 310|+					"food": 100,
| 311| 311| 					wood: 0,
| 312| 312| 					metal: 0,
| 313| 313| 					stone: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'wood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 308| 308| 			statistics: {
| 309| 309| 				resourcesGathered: {
| 310| 310| 					food: 100,
| 311|    |-					wood: 0,
|    | 311|+					"wood": 0,
| 312| 312| 					metal: 0,
| 313| 313| 					stone: 0,
| 314| 314| 					vegetarianFood: 0
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'metal' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 309| 309| 				resourcesGathered: {
| 310| 310| 					food: 100,
| 311| 311| 					wood: 0,
| 312|    |-					metal: 0,
|    | 312|+					"metal": 0,
| 313| 313| 					stone: 0,
| 314| 314| 					vegetarianFood: 0
| 315| 315| 				},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'stone' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 310| 310| 					food: 100,
| 311| 311| 					wood: 0,
| 312| 312| 					metal: 0,
| 313|    |-					stone: 0,
|    | 313|+					"stone": 0,
| 314| 314| 					vegetarianFood: 0
| 315| 315| 				},
| 316| 316| 				percentMapExplored: 10
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'vegetarianFood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 311| 311| 					wood: 0,
| 312| 312| 					metal: 0,
| 313| 313| 					stone: 0,
| 314|    |-					vegetarianFood: 0
|    | 314|+					"vegetarianFood": 0
| 315| 315| 				},
| 316| 316| 				percentMapExplored: 10
| 317| 317| 			}
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'percentMapExplored' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 313| 313| 					stone: 0,
| 314| 314| 					vegetarianFood: 0
| 315| 315| 				},
| 316|    |-				percentMapExplored: 10
|    | 316|+				"percentMapExplored": 10
| 317| 317| 			}
| 318| 318| 		},
| 319| 319| 		{
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'name' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 317| 317| 			}
| 318| 318| 		},
| 319| 319| 		{
| 320|    |-			name: "Player 2",
|    | 320|+			"name": "Player 2",
| 321| 321| 			civ: "mace",
| 322| 322| 			color: { r:1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'civ' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 318| 318| 		},
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321|    |-			civ: "mace",
|    | 321|+			"civ": "mace",
| 322| 322| 			color: { r:1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'color' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			"color": { r:1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'r' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { "r":1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r: 1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'g' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r:1, "g":0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r:1, g: 0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'b' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r:1, g:0, "b":0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r:1, g:0, b: 0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'a' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r:1, g:0, b:0, "a":1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 319| 319| 		{
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322|    |-			color: { r:1, g:0, b:0, a:1 },
|    | 322|+			color: { r:1, g:0, b:0, a: 1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'controlsAll' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 320| 320| 			name: "Player 2",
| 321| 321| 			civ: "mace",
| 322| 322| 			color: { r:1, g:0, b:0, a:1 },
| 323|    |-			controlsAll: true,
|    | 323|+			"controlsAll": true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
| 326| 326| 			popMax: 300,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popCount' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 321| 321| 			civ: "mace",
| 322| 322| 			color: { r:1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324|    |-			popCount: 40,
|    | 324|+			"popCount": 40,
| 325| 325| 			popLimit: 30,
| 326| 326| 			popMax: 300,
| 327| 327| 			panelEntities: [],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popLimit' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 322| 322| 			color: { r:1, g:0, b:0, a:1 },
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325|    |-			popLimit: 30,
|    | 325|+			"popLimit": 30,
| 326| 326| 			popMax: 300,
| 327| 327| 			panelEntities: [],
| 328| 328| 			resourceCounts: { food: 200 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'popMax' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 323| 323| 			controlsAll: true,
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
| 326|    |-			popMax: 300,
|    | 326|+			"popMax": 300,
| 327| 327| 			panelEntities: [],
| 328| 328| 			resourceCounts: { food: 200 },
| 329| 329| 			trainingBlocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'panelEntities' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 324| 324| 			popCount: 40,
| 325| 325| 			popLimit: 30,
| 326| 326| 			popMax: 300,
| 327|    |-			panelEntities: [],
|    | 327|+			"panelEntities": [],
| 328| 328| 			resourceCounts: { food: 200 },
| 329| 329| 			trainingBlocked: false,
| 330| 330| 			state: "active",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourceCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 325| 325| 			popLimit: 30,
| 326| 326| 			popMax: 300,
| 327| 327| 			panelEntities: [],
| 328|    |-			resourceCounts: { food: 200 },
|    | 328|+			"resourceCounts": { food: 200 },
| 329| 329| 			trainingBlocked: false,
| 330| 330| 			state: "active",
| 331| 331| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 325| 325| 			popLimit: 30,
| 326| 326| 			popMax: 300,
| 327| 327| 			panelEntities: [],
| 328|    |-			resourceCounts: { food: 200 },
|    | 328|+			resourceCounts: { "food": 200 },
| 329| 329| 			trainingBlocked: false,
| 330| 330| 			state: "active",
| 331| 331| 			team: -1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'trainingBlocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 326| 326| 			popMax: 300,
| 327| 327| 			panelEntities: [],
| 328| 328| 			resourceCounts: { food: 200 },
| 329|    |-			trainingBlocked: false,
|    | 329|+			"trainingBlocked": false,
| 330| 330| 			state: "active",
| 331| 331| 			team: -1,
| 332| 332| 			teamsLocked: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'state' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 327| 327| 			panelEntities: [],
| 328| 328| 			resourceCounts: { food: 200 },
| 329| 329| 			trainingBlocked: false,
| 330|    |-			state: "active",
|    | 330|+			"state": "active",
| 331| 331| 			team: -1,
| 332| 332| 			teamsLocked: false,
| 333| 333| 			cheatsEnabled: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'team' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 328| 328| 			resourceCounts: { food: 200 },
| 329| 329| 			trainingBlocked: false,
| 330| 330| 			state: "active",
| 331|    |-			team: -1,
|    | 331|+			"team": -1,
| 332| 332| 			teamsLocked: false,
| 333| 333| 			cheatsEnabled: false,
| 334| 334| 			disabledTemplates: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'teamsLocked' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 329| 329| 			trainingBlocked: false,
| 330| 330| 			state: "active",
| 331| 331| 			team: -1,
| 332|    |-			teamsLocked: false,
|    | 332|+			"teamsLocked": false,
| 333| 333| 			cheatsEnabled: false,
| 334| 334| 			disabledTemplates: {},
| 335| 335| 			disabledTechnologies: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'cheatsEnabled' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 330| 330| 			state: "active",
| 331| 331| 			team: -1,
| 332| 332| 			teamsLocked: false,
| 333|    |-			cheatsEnabled: false,
|    | 333|+			"cheatsEnabled": false,
| 334| 334| 			disabledTemplates: {},
| 335| 335| 			disabledTechnologies: {},
| 336| 336| 			hasSharedDropsites: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTemplates' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 331| 331| 			team: -1,
| 332| 332| 			teamsLocked: false,
| 333| 333| 			cheatsEnabled: false,
| 334|    |-			disabledTemplates: {},
|    | 334|+			"disabledTemplates": {},
| 335| 335| 			disabledTechnologies: {},
| 336| 336| 			hasSharedDropsites: false,
| 337| 337| 			hasSharedLos: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'disabledTechnologies' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 332| 332| 			teamsLocked: false,
| 333| 333| 			cheatsEnabled: false,
| 334| 334| 			disabledTemplates: {},
| 335|    |-			disabledTechnologies: {},
|    | 335|+			"disabledTechnologies": {},
| 336| 336| 			hasSharedDropsites: false,
| 337| 337| 			hasSharedLos: false,
| 338| 338| 			spyCostMultiplier: 1,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedDropsites' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 333| 333| 			cheatsEnabled: false,
| 334| 334| 			disabledTemplates: {},
| 335| 335| 			disabledTechnologies: {},
| 336|    |-			hasSharedDropsites: false,
|    | 336|+			"hasSharedDropsites": false,
| 337| 337| 			hasSharedLos: false,
| 338| 338| 			spyCostMultiplier: 1,
| 339| 339| 			phase: "village",
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'hasSharedLos' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 334| 334| 			disabledTemplates: {},
| 335| 335| 			disabledTechnologies: {},
| 336| 336| 			hasSharedDropsites: false,
| 337|    |-			hasSharedLos: false,
|    | 337|+			"hasSharedLos": false,
| 338| 338| 			spyCostMultiplier: 1,
| 339| 339| 			phase: "village",
| 340| 340| 			isAlly: [true, true],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'spyCostMultiplier' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 335| 335| 			disabledTechnologies: {},
| 336| 336| 			hasSharedDropsites: false,
| 337| 337| 			hasSharedLos: false,
| 338|    |-			spyCostMultiplier: 1,
|    | 338|+			"spyCostMultiplier": 1,
| 339| 339| 			phase: "village",
| 340| 340| 			isAlly: [true, true],
| 341| 341| 			isMutualAlly: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'phase' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 336| 336| 			hasSharedDropsites: false,
| 337| 337| 			hasSharedLos: false,
| 338| 338| 			spyCostMultiplier: 1,
| 339|    |-			phase: "village",
|    | 339|+			"phase": "village",
| 340| 340| 			isAlly: [true, true],
| 341| 341| 			isMutualAlly: [false, false],
| 342| 342| 			isNeutral: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 337| 337| 			hasSharedLos: false,
| 338| 338| 			spyCostMultiplier: 1,
| 339| 339| 			phase: "village",
| 340|    |-			isAlly: [true, true],
|    | 340|+			"isAlly": [true, true],
| 341| 341| 			isMutualAlly: [false, false],
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isMutualAlly' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 338| 338| 			spyCostMultiplier: 1,
| 339| 339| 			phase: "village",
| 340| 340| 			isAlly: [true, true],
| 341|    |-			isMutualAlly: [false, false],
|    | 341|+			"isMutualAlly": [false, false],
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isNeutral' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 339| 339| 			phase: "village",
| 340| 340| 			isAlly: [true, true],
| 341| 341| 			isMutualAlly: [false, false],
| 342|    |-			isNeutral: [false, false],
|    | 342|+			"isNeutral": [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'isEnemy' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 340| 340| 			isAlly: [true, true],
| 341| 341| 			isMutualAlly: [false, false],
| 342| 342| 			isNeutral: [false, false],
| 343|    |-			isEnemy: [false, false],
|    | 343|+			"isEnemy": [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimits' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 341| 341| 			isMutualAlly: [false, false],
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344|    |-			entityLimits: {"Bar": 20},
|    | 344|+			"entityLimits": {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 341| 341| 			isMutualAlly: [false, false],
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344|    |-			entityLimits: {"Bar": 20},
|    | 344|+			entityLimits: { "Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 341| 341| 			isMutualAlly: [false, false],
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344|    |-			entityLimits: {"Bar": 20},
|    | 344|+			entityLimits: {"Bar": 20 },
| 345| 345| 			entityCounts: {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345|    |-			entityCounts: {"Bar": 0},
|    | 345|+			"entityCounts": {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345|    |-			entityCounts: {"Bar": 0},
|    | 345|+			entityCounts: { "Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 342| 342| 			isNeutral: [false, false],
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345|    |-			entityCounts: {"Bar": 0},
|    | 345|+			entityCounts: {"Bar": 0 },
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'entityLimitChangers' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346|    |-			entityLimitChangers: {"Bar": {}},
|    | 346|+			"entityLimitChangers": {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
| 349| 349| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346|    |-			entityLimitChangers: {"Bar": {}},
|    | 346|+			entityLimitChangers: { "Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
| 349| 349| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 343| 343| 			isEnemy: [false, false],
| 344| 344| 			entityLimits: {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346|    |-			entityLimitChangers: {"Bar": {}},
|    | 346|+			entityLimitChangers: {"Bar": {} },
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
| 349| 349| 			researchedTechs: new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchQueued' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 344| 344| 			entityLimits: {"Bar": 20},
| 345| 345| 			entityCounts: {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347|    |-			researchQueued: new Map(),
|    | 347|+			"researchQueued": new Map(),
| 348| 348| 			researchStarted: new Set(),
| 349| 349| 			researchedTechs: new Set(),
| 350| 350| 			classCounts: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchStarted' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 345| 345| 			entityCounts: {"Bar": 0},
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348|    |-			researchStarted: new Set(),
|    | 348|+			"researchStarted": new Set(),
| 349| 349| 			researchedTechs: new Set(),
| 350| 350| 			classCounts: {},
| 351| 351| 			typeCountsByClass: {},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'researchedTechs' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 346| 346| 			entityLimitChangers: {"Bar": {}},
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
| 349|    |-			researchedTechs: new Set(),
|    | 349|+			"researchedTechs": new Set(),
| 350| 350| 			classCounts: {},
| 351| 351| 			typeCountsByClass: {},
| 352| 352| 			canBarter: false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'classCounts' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 347| 347| 			researchQueued: new Map(),
| 348| 348| 			researchStarted: new Set(),
| 349| 349| 			researchedTechs: new Set(),
| 350|    |-			classCounts: {},
|    | 350|+			"classCounts": {},
| 351| 351| 			typeCountsByClass: {},
| 352| 352| 			canBarter: false,
| 353| 353| 			barterPrices: {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'typeCountsByClass' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 348| 348| 			researchStarted: new Set(),
| 349| 349| 			researchedTechs: new Set(),
| 350| 350| 			classCounts: {},
| 351|    |-			typeCountsByClass: {},
|    | 351|+			"typeCountsByClass": {},
| 352| 352| 			canBarter: false,
| 353| 353| 			barterPrices: {
| 354| 354| 				"buy": { "food": 150 },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'canBarter' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 349| 349| 			researchedTechs: new Set(),
| 350| 350| 			classCounts: {},
| 351| 351| 			typeCountsByClass: {},
| 352|    |-			canBarter: false,
|    | 352|+			"canBarter": false,
| 353| 353| 			barterPrices: {
| 354| 354| 				"buy": { "food": 150 },
| 355| 355| 				"sell": { "food": 25 }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'barterPrices' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 350| 350| 			classCounts: {},
| 351| 351| 			typeCountsByClass: {},
| 352| 352| 			canBarter: false,
| 353|    |-			barterPrices: {
|    | 353|+			"barterPrices": {
| 354| 354| 				"buy": { "food": 150 },
| 355| 355| 				"sell": { "food": 25 }
| 356| 356| 			},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'statistics' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 354| 354| 				"buy": { "food": 150 },
| 355| 355| 				"sell": { "food": 25 }
| 356| 356| 			},
| 357|    |-			statistics: {
|    | 357|+			"statistics": {
| 358| 358| 				resourcesGathered: {
| 359| 359| 					food: 100,
| 360| 360| 					wood: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'resourcesGathered' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 355| 355| 				"sell": { "food": 25 }
| 356| 356| 			},
| 357| 357| 			statistics: {
| 358|    |-				resourcesGathered: {
|    | 358|+				"resourcesGathered": {
| 359| 359| 					food: 100,
| 360| 360| 					wood: 0,
| 361| 361| 					metal: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'food' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 356| 356| 			},
| 357| 357| 			statistics: {
| 358| 358| 				resourcesGathered: {
| 359|    |-					food: 100,
|    | 359|+					"food": 100,
| 360| 360| 					wood: 0,
| 361| 361| 					metal: 0,
| 362| 362| 					stone: 0,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'wood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 357| 357| 			statistics: {
| 358| 358| 				resourcesGathered: {
| 359| 359| 					food: 100,
| 360|    |-					wood: 0,
|    | 360|+					"wood": 0,
| 361| 361| 					metal: 0,
| 362| 362| 					stone: 0,
| 363| 363| 					vegetarianFood: 0
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'metal' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 358| 358| 				resourcesGathered: {
| 359| 359| 					food: 100,
| 360| 360| 					wood: 0,
| 361|    |-					metal: 0,
|    | 361|+					"metal": 0,
| 362| 362| 					stone: 0,
| 363| 363| 					vegetarianFood: 0
| 364| 364| 				},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'stone' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 359| 359| 					food: 100,
| 360| 360| 					wood: 0,
| 361| 361| 					metal: 0,
| 362|    |-					stone: 0,
|    | 362|+					"stone": 0,
| 363| 363| 					vegetarianFood: 0
| 364| 364| 				},
| 365| 365| 				percentMapExplored: 10
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'vegetarianFood' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 360| 360| 					wood: 0,
| 361| 361| 					metal: 0,
| 362| 362| 					stone: 0,
| 363|    |-					vegetarianFood: 0
|    | 363|+					"vegetarianFood": 0
| 364| 364| 				},
| 365| 365| 				percentMapExplored: 10
| 366| 366| 			}
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'percentMapExplored' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 362| 362| 					stone: 0,
| 363| 363| 					vegetarianFood: 0
| 364| 364| 				},
| 365|    |-				percentMapExplored: 10
|    | 365|+				"percentMapExplored": 10
| 366| 366| 			}
| 367| 367| 		}
| 368| 368| 	],
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'circularMap' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 366| 366| 			}
| 367| 367| 		}
| 368| 368| 	],
| 369|    |-	circularMap: false,
|    | 369|+	"circularMap": false,
| 370| 370| 	timeElapsed: 0,
| 371| 371| 	"victoryConditions": ["conquest", "wonder"],
| 372| 372| 	alliedVictory: false
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'timeElapsed' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 367| 367| 		}
| 368| 368| 	],
| 369| 369| 	circularMap: false,
| 370|    |-	timeElapsed: 0,
|    | 370|+	"timeElapsed": 0,
| 371| 371| 	"victoryConditions": ["conquest", "wonder"],
| 372| 372| 	alliedVictory: false
| 373| 373| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'alliedVictory' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 369| 369| 	circularMap: false,
| 370| 370| 	timeElapsed: 0,
| 371| 371| 	"victoryConditions": ["conquest", "wonder"],
| 372|    |-	alliedVictory: false
|    | 372|+	"alliedVictory": false
| 373| 373| });
| 374| 374| 
| 375| 375| TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), {
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 377| 377| 		{
| 378| 378| 			"name": "Player 1",
| 379| 379| 			"civ": "gaia",
| 380|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 380|+			"color": { "r": 1, "g":1, "b":1, "a":1 },
| 381| 381| 			"controlsAll": false,
| 382| 382| 			"popCount": 10,
| 383| 383| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 377| 377| 		{
| 378| 378| 			"name": "Player 1",
| 379| 379| 			"civ": "gaia",
| 380|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 380|+			"color": { "r":1, "g": 1, "b":1, "a":1 },
| 381| 381| 			"controlsAll": false,
| 382| 382| 			"popCount": 10,
| 383| 383| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 377| 377| 		{
| 378| 378| 			"name": "Player 1",
| 379| 379| 			"civ": "gaia",
| 380|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 380|+			"color": { "r":1, "g":1, "b": 1, "a":1 },
| 381| 381| 			"controlsAll": false,
| 382| 382| 			"popCount": 10,
| 383| 383| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 377| 377| 		{
| 378| 378| 			"name": "Player 1",
| 379| 379| 			"civ": "gaia",
| 380|    |-			"color": { "r":1, "g":1, "b":1, "a":1 },
|    | 380|+			"color": { "r":1, "g":1, "b":1, "a": 1 },
| 381| 381| 			"controlsAll": false,
| 382| 382| 			"popCount": 10,
| 383| 383| 			"popLimit": 20,
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 399| 399| 			"isMutualAlly": [false, false],
| 400| 400| 			"isNeutral": [false, false],
| 401| 401| 			"isEnemy": [true, true],
| 402|    |-			"entityLimits": {"Foo": 10},
|    | 402|+			"entityLimits": { "Foo": 10},
| 403| 403| 			"entityCounts": {"Foo": 5},
| 404| 404| 			"entityLimitChangers": {"Foo": {}},
| 405| 405| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 399| 399| 			"isMutualAlly": [false, false],
| 400| 400| 			"isNeutral": [false, false],
| 401| 401| 			"isEnemy": [true, true],
| 402|    |-			"entityLimits": {"Foo": 10},
|    | 402|+			"entityLimits": {"Foo": 10 },
| 403| 403| 			"entityCounts": {"Foo": 5},
| 404| 404| 			"entityLimitChangers": {"Foo": {}},
| 405| 405| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 400| 400| 			"isNeutral": [false, false],
| 401| 401| 			"isEnemy": [true, true],
| 402| 402| 			"entityLimits": {"Foo": 10},
| 403|    |-			"entityCounts": {"Foo": 5},
|    | 403|+			"entityCounts": { "Foo": 5},
| 404| 404| 			"entityLimitChangers": {"Foo": {}},
| 405| 405| 			"researchQueued": new Map(),
| 406| 406| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 400| 400| 			"isNeutral": [false, false],
| 401| 401| 			"isEnemy": [true, true],
| 402| 402| 			"entityLimits": {"Foo": 10},
| 403|    |-			"entityCounts": {"Foo": 5},
|    | 403|+			"entityCounts": {"Foo": 5 },
| 404| 404| 			"entityLimitChangers": {"Foo": {}},
| 405| 405| 			"researchQueued": new Map(),
| 406| 406| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 401| 401| 			"isEnemy": [true, true],
| 402| 402| 			"entityLimits": {"Foo": 10},
| 403| 403| 			"entityCounts": {"Foo": 5},
| 404|    |-			"entityLimitChangers": {"Foo": {}},
|    | 404|+			"entityLimitChangers": { "Foo": {}},
| 405| 405| 			"researchQueued": new Map(),
| 406| 406| 			"researchStarted": new Set(),
| 407| 407| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 401| 401| 			"isEnemy": [true, true],
| 402| 402| 			"entityLimits": {"Foo": 10},
| 403| 403| 			"entityCounts": {"Foo": 5},
| 404|    |-			"entityLimitChangers": {"Foo": {}},
|    | 404|+			"entityLimitChangers": {"Foo": {} },
| 405| 405| 			"researchQueued": new Map(),
| 406| 406| 			"researchStarted": new Set(),
| 407| 407| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'r'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 449| 449| 		{
| 450| 450| 			"name": "Player 2",
| 451| 451| 			"civ": "mace",
| 452|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 452|+			"color": { "r": 1, "g":0, "b":0, "a":1 },
| 453| 453| 			"controlsAll": true,
| 454| 454| 			"popCount": 40,
| 455| 455| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'g'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 449| 449| 		{
| 450| 450| 			"name": "Player 2",
| 451| 451| 			"civ": "mace",
| 452|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 452|+			"color": { "r":1, "g": 0, "b":0, "a":1 },
| 453| 453| 			"controlsAll": true,
| 454| 454| 			"popCount": 40,
| 455| 455| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'b'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 449| 449| 		{
| 450| 450| 			"name": "Player 2",
| 451| 451| 			"civ": "mace",
| 452|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 452|+			"color": { "r":1, "g":0, "b": 0, "a":1 },
| 453| 453| 			"controlsAll": true,
| 454| 454| 			"popCount": 40,
| 455| 455| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'a'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 449| 449| 		{
| 450| 450| 			"name": "Player 2",
| 451| 451| 			"civ": "mace",
| 452|    |-			"color": { "r":1, "g":0, "b":0, "a":1 },
|    | 452|+			"color": { "r":1, "g":0, "b":0, "a": 1 },
| 453| 453| 			"controlsAll": true,
| 454| 454| 			"popCount": 40,
| 455| 455| 			"popLimit": 30,
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 471| 471| 			"isMutualAlly": [false, false],
| 472| 472| 			"isNeutral": [false, false],
| 473| 473| 			"isEnemy": [false, false],
| 474|    |-			"entityLimits": {"Bar": 20},
|    | 474|+			"entityLimits": { "Bar": 20},
| 475| 475| 			"entityCounts": {"Bar": 0},
| 476| 476| 			"entityLimitChangers": {"Bar": {}},
| 477| 477| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 471| 471| 			"isMutualAlly": [false, false],
| 472| 472| 			"isNeutral": [false, false],
| 473| 473| 			"isEnemy": [false, false],
| 474|    |-			"entityLimits": {"Bar": 20},
|    | 474|+			"entityLimits": {"Bar": 20 },
| 475| 475| 			"entityCounts": {"Bar": 0},
| 476| 476| 			"entityLimitChangers": {"Bar": {}},
| 477| 477| 			"researchQueued": new Map(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 472| 472| 			"isNeutral": [false, false],
| 473| 473| 			"isEnemy": [false, false],
| 474| 474| 			"entityLimits": {"Bar": 20},
| 475|    |-			"entityCounts": {"Bar": 0},
|    | 475|+			"entityCounts": { "Bar": 0},
| 476| 476| 			"entityLimitChangers": {"Bar": {}},
| 477| 477| 			"researchQueued": new Map(),
| 478| 478| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 472| 472| 			"isNeutral": [false, false],
| 473| 473| 			"isEnemy": [false, false],
| 474| 474| 			"entityLimits": {"Bar": 20},
| 475|    |-			"entityCounts": {"Bar": 0},
|    | 475|+			"entityCounts": {"Bar": 0 },
| 476| 476| 			"entityLimitChangers": {"Bar": {}},
| 477| 477| 			"researchQueued": new Map(),
| 478| 478| 			"researchStarted": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 473| 473| 			"isEnemy": [false, false],
| 474| 474| 			"entityLimits": {"Bar": 20},
| 475| 475| 			"entityCounts": {"Bar": 0},
| 476|    |-			"entityLimitChangers": {"Bar": {}},
|    | 476|+			"entityLimitChangers": { "Bar": {}},
| 477| 477| 			"researchQueued": new Map(),
| 478| 478| 			"researchStarted": new Set(),
| 479| 479| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 473| 473| 			"isEnemy": [false, false],
| 474| 474| 			"entityLimits": {"Bar": 20},
| 475| 475| 			"entityCounts": {"Bar": 0},
| 476|    |-			"entityLimitChangers": {"Bar": {}},
|    | 476|+			"entityLimitChangers": {"Bar": {} },
| 477| 477| 			"researchQueued": new Map(),
| 478| 478| 			"researchStarted": new Set(),
| 479| 479| 			"researchedTechs": new Set(),
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetEntitiesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 527| 527| 
| 528| 528| 
| 529| 529| AddMock(10, IID_Builder, {
| 530|    |-	GetEntitiesList: function() {
|    | 530|+	"GetEntitiesList": function() {
| 531| 531| 		return ["test1", "test2"];
| 532| 532| 	},
| 533| 533| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 533| 533| });
| 534| 534| 
| 535| 535| AddMock(10, IID_Health, {
| 536|    |-	GetHitpoints: function() { return 50; },
|    | 536|+	"GetHitpoints": function() { return 50; },
| 537| 537| 	GetMaxHitpoints: function() { return 60; },
| 538| 538| 	IsRepairable: function() { return false; },
| 539| 539| 	IsUnhealable: function() { return false; }
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetMaxHitpoints' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 534| 534| 
| 535| 535| AddMock(10, IID_Health, {
| 536| 536| 	GetHitpoints: function() { return 50; },
| 537|    |-	GetMaxHitpoints: function() { return 60; },
|    | 537|+	"GetMaxHitpoints": function() { return 60; },
| 538| 538| 	IsRepairable: function() { return false; },
| 539| 539| 	IsUnhealable: function() { return false; }
| 540| 540| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsRepairable' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 535| 535| AddMock(10, IID_Health, {
| 536| 536| 	GetHitpoints: function() { return 50; },
| 537| 537| 	GetMaxHitpoints: function() { return 60; },
| 538|    |-	IsRepairable: function() { return false; },
|    | 538|+	"IsRepairable": function() { return false; },
| 539| 539| 	IsUnhealable: function() { return false; }
| 540| 540| });
| 541| 541| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsUnhealable' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 536| 536| 	GetHitpoints: function() { return 50; },
| 537| 537| 	GetMaxHitpoints: function() { return 60; },
| 538| 538| 	IsRepairable: function() { return false; },
| 539|    |-	IsUnhealable: function() { return false; }
|    | 539|+	"IsUnhealable": function() { return false; }
| 540| 540| });
| 541| 541| 
| 542| 542| AddMock(10, IID_Identity, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetClassesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 540| 540| });
| 541| 541| 
| 542| 542| AddMock(10, IID_Identity, {
| 543|    |-	GetClassesList: function() { return ["class1", "class2"]; },
|    | 543|+	"GetClassesList": function() { return ["class1", "class2"]; },
| 544| 544| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 545| 545| 	GetRank: function() { return "foo"; },
| 546| 546| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetVisibleClassesList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 541| 541| 
| 542| 542| AddMock(10, IID_Identity, {
| 543| 543| 	GetClassesList: function() { return ["class1", "class2"]; },
| 544|    |-	GetVisibleClassesList: function() { return ["class3", "class4"]; },
|    | 544|+	"GetVisibleClassesList": function() { return ["class3", "class4"]; },
| 545| 545| 	GetRank: function() { return "foo"; },
| 546| 546| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 547| 547| 	HasClass: function() { return true; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetRank' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 542| 542| AddMock(10, IID_Identity, {
| 543| 543| 	GetClassesList: function() { return ["class1", "class2"]; },
| 544| 544| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 545|    |-	GetRank: function() { return "foo"; },
|    | 545|+	"GetRank": function() { return "foo"; },
| 546| 546| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 547| 547| 	HasClass: function() { return true; },
| 548| 548| 	HasSomeFormation: function() { return false; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetSelectionGroupName' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 543| 543| 	GetClassesList: function() { return ["class1", "class2"]; },
| 544| 544| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 545| 545| 	GetRank: function() { return "foo"; },
| 546|    |-	GetSelectionGroupName: function() { return "Selection Group Name"; },
|    | 546|+	"GetSelectionGroupName": function() { return "Selection Group Name"; },
| 547| 547| 	HasClass: function() { return true; },
| 548| 548| 	HasSomeFormation: function() { return false; },
| 549| 549| 	GetFormationsList: function() { return []; },
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasClass' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 544| 544| 	GetVisibleClassesList: function() { return ["class3", "class4"]; },
| 545| 545| 	GetRank: function() { return "foo"; },
| 546| 546| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 547|    |-	HasClass: function() { return true; },
|    | 547|+	"HasClass": function() { return true; },
| 548| 548| 	HasSomeFormation: function() { return false; },
| 549| 549| 	GetFormationsList: function() { return []; },
| 550| 550| });
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'HasSomeFormation' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 545| 545| 	GetRank: function() { return "foo"; },
| 546| 546| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 547| 547| 	HasClass: function() { return true; },
| 548|    |-	HasSomeFormation: function() { return false; },
|    | 548|+	"HasSomeFormation": function() { return false; },
| 549| 549| 	GetFormationsList: function() { return []; },
| 550| 550| });
| 551| 551| 
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetFormationsList' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 546| 546| 	GetSelectionGroupName: function() { return "Selection Group Name"; },
| 547| 547| 	HasClass: function() { return true; },
| 548| 548| 	HasSomeFormation: function() { return false; },
| 549|    |-	GetFormationsList: function() { return []; },
|    | 549|+	"GetFormationsList": function() { return []; },
| 550| 550| });
| 551| 551| 
| 552| 552| AddMock(10, IID_Position, {
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetTurretParent' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 550| 550| });
| 551| 551| 
| 552| 552| AddMock(10, IID_Position, {
| 553|    |-	GetTurretParent: function() {return INVALID_ENTITY;},
|    | 553|+	"GetTurretParent": function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555| 555| 		return {x:1, y:2, z:3};
| 556| 556| 	},
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'GetPosition' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 551| 551| 
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554|    |-	GetPosition: function() {
|    | 554|+	"GetPosition": function() {
| 555| 555| 		return {x:1, y:2, z:3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return { x:1, y:2, z:3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'x' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {"x":1, y:2, z:3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'x'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {x: 1, y:2, z:3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'y' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {x:1, "y":2, z:3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'y'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {x:1, y: 2, z:3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'z' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {x:1, y:2, "z":3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'z'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {x:1, y:2, z: 3};
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 552| 552| AddMock(10, IID_Position, {
| 553| 553| 	GetTurretParent: function() {return INVALID_ENTITY;},
| 554| 554| 	GetPosition: function() {
| 555|    |-		return {x:1, y:2, z:3};
|    | 555|+		return {x:1, y:2, z:3 };
| 556| 556| 	},
| 557| 557| 	IsInWorld: function() {
| 558| 558| 		return true;
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'IsInWorld' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 554| 554| 	GetPosition: function() {
| 555| 555| 		return {x:1, y:2, z:3};
| 556| 556| 	},
| 557|    |-	IsInWorld: function() {
|    | 557|+	"IsInWorld": function() {
| 558| 558| 		return true;
| 559| 559| 	}
| 560| 560| });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": { x:1, y:2, z:3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'x' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {"x":1, y:2, z:3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'x'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {x: 1, y:2, z:3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'y' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {x:1, "y":2, z:3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'y'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {x:1, y: 2, z:3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (quote-props):
|    | Unquoted property 'z' found.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {x:1, y:2, "z":3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'z'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {x:1, y:2, z: 3},
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 579| 579| 		"hasSomeFormation": false,
| 580| 580| 		"formations": [],
| 581| 581| 	},
| 582|    |-	"position": {x:1, y:2, z:3},
|    | 582|+	"position": {x:1, y:2, z:3 },
| 583| 583| 	"hitpoints": 50,
| 584| 584| 	"maxHitpoints": 60,
| 585| 585| 	"needsRepair": false,
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'isBarterMarket'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
| 587| 587| 	"builder": true,
| 588| 588| 	"canGarrison": false,
| 589| 589| 	"visibility": "visible",
| 590|    |-	"isBarterMarket":true,
|    | 590|+	"isBarterMarket": true,
| 591| 591| 	"resourceTrickle": {
| 592| 592| 		"interval": 1250,
| 593| 593| 		"rates": { "food": 2, "wood": 3, "stone": 5, "metal": 9 }
|    | [NORMAL] ESLintBear (no-else-return):
|    | Unnecessary 'else' after 'return'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
| 777| 777| 					this.FinishOrder();
| 778| 778| 					return;
| 779| 779| 				}
| 780|    |-				else
| 781|    |-				{
|    | 780|+				
| 782| 781| 					this.SetNextState("GARRISON.APPROACHING");
| 783| 782| 					return;
| 784|    |-				}
|    | 783|+				
| 785| 784| 			}
| 786| 785| 
| 787| 786| 			this.SetNextState("GARRISON.GARRISONING");
|    | [NORMAL] ESLintBear (key-spacing):
|    | Missing space before value for key 'GARRISON'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|1049|1049| 			},
|1050|1050| 		},
|1051|1051| 
|1052|    |-		"GARRISON":{
|    |1052|+		"GARRISON": {
|1053|1053| 			"APPROACHING": {
|1054|1054| 				"enter": function() {
|1055|1055| 					if (!this.MoveToGarrisonRange(this.order.data.target))
|    | [NORMAL] ESLintBear (operator-linebreak):
|    | '&&' should be placed at the end of the line.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2027|2027| 
|2028|2028| 				"Attacked": function(msg) {
|2029|2029| 					// If we are capturing and are attacked by something that we would not capture, attack that entity instead
|2030|    |-					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force)
|2031|    |-						&& this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|    |2030|+					if (this.order.data.attackType == "Capture" && (this.GetStance().targetAttackersAlways || !this.order.data.force) &&
|    |2031|+						this.order.data.target != msg.data.attacker && this.GetBestAttackAgainst(msg.data.attacker, true) != "Capture")
|2032|2032| 						this.RespondToTargetedEntities([msg.data.attacker]);
|2033|2033| 				},
|2034|2034| 			},
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2765|2765| 					{
|2766|2766| 						// The building was already finished/fully repaired before we arrived;
|2767|2767| 						// let the ConstructionFinished handler handle this.
|2768|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2768|+						this.OnGlobalConstructionFinished({ "entity": this.repairTarget, "newentity": this.repairTarget});
|2769|2769| 						return true;
|2770|2770| 					}
|2771|2771| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|2765|2765| 					{
|2766|2766| 						// The building was already finished/fully repaired before we arrived;
|2767|2767| 						// let the ConstructionFinished handler handle this.
|2768|    |-						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget});
|    |2768|+						this.OnGlobalConstructionFinished({"entity": this.repairTarget, "newentity": this.repairTarget });
|2769|2769| 						return true;
|2770|2770| 					}
|2771|2771| 
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3063|3063| 				this.StopTimer();
|3064|3064| 				this.ResetAnimation();
|3065|3065| 				if (this.formationAnimationVariant)
|3066|    |-					this.SetAnimationVariant(this.formationAnimationVariant)
|    |3066|+					this.SetAnimationVariant(this.formationAnimationVariant);
|3067|3067| 				else
|3068|3068| 					this.SetDefaultAnimationVariant();
|3069|3069| 				var cmpResistance = Engine.QueryInterface(this.entity, IID_Resistance);
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 2 tabs but found 7.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3289|3289| 		"COMBAT": "INDIVIDUAL.COMBAT", // reuse the same combat behaviour for animals
|3290|3290| 
|3291|3291| 		"WALKING": "INDIVIDUAL.WALKING",	// reuse the same walking behaviour for animals
|3292|    |-							// only used for domestic animals
|    |3292|+		// only used for domestic animals
|3293|3293| 
|3294|3294| 		// Reuse the same garrison behaviour for animals.
|3295|3295| 		"GARRISON": "INDIVIDUAL.GARRISON",
|    | [NORMAL] ESLintBear (no-unneeded-ternary):
|    | Unnecessary use of boolean literals in conditional expression.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3351|3351| 
|3352|3352| UnitAI.prototype.IsAnimal = function()
|3353|3353| {
|3354|    |-	return (this.template.NaturalBehaviour ? true : false);
|    |3354|+	return (!!this.template.NaturalBehaviour);
|3355|3355| };
|3356|3356| 
|3357|3357| UnitAI.prototype.IsDangerousAnimal = function()
|    | [NORMAL] ESLintBear (comma-spacing):
|    | A space is required after ','.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3467|3467| 		{
|3468|3468| 			let index = this.GetCurrentState().indexOf(".");
|3469|3469| 			if (index != -1)
|3470|    |-				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0,index));
|    |3470|+				this.UnitFsm.SwitchToNextState(this, this.GetCurrentState().slice(0, index));
|3471|3471| 			this.Stop(false);
|3472|3472| 		}
|3473|3473| 
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3523|3523| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3524|3524| 			continue;
|3525|3525| 		if (i == 0)
|3526|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3526|+			this.UnitFsm.ProcessMessage(this, { "type": "PickupCanceled", "data": msg});
|3527|3527| 		else
|3528|3528| 			this.orderQueue.splice(i, 1);
|3529|3529| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3523|3523| 		if (this.orderQueue[i].type != "PickupUnit" || this.orderQueue[i].data.target != msg.entity)
|3524|3524| 			continue;
|3525|3525| 		if (i == 0)
|3526|    |-			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg});
|    |3526|+			this.UnitFsm.ProcessMessage(this, {"type": "PickupCanceled", "data": msg });
|3527|3527| 		else
|3528|3528| 			this.orderQueue.splice(i, 1);
|3529|3529| 		Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|    | [NORMAL] ESLintBear (spaced-comment):
|    | Expected space or tab after '//' in comment.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3610|3610| };
|3611|3611| 
|3612|3612| 
|3613|    |-//// FSM linkage functions ////
|    |3613|+// // FSM linkage functions ////
|3614|3614| 
|3615|3615| // Setting the next state to the current state will leave/re-enter the top-most substate.
|3616|3616| UnitAI.prototype.SetNextState = function(state)
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3781|3781| 				continue;
|3782|3782| 			if (this.orderQueue[i].type == type)
|3783|3783| 				continue;
|3784|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3784|+			this.orderQueue.splice(i, 0, { "type": type, "data": data});
|3785|3785| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3786|3786| 			return;
|3787|3787| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|3781|3781| 				continue;
|3782|3782| 			if (this.orderQueue[i].type == type)
|3783|3783| 				continue;
|3784|    |-			this.orderQueue.splice(i, 0, {"type": type, "data": data});
|    |3784|+			this.orderQueue.splice(i, 0, {"type": type, "data": data });
|3785|3785| 			Engine.PostMessage(this.entity, MT_UnitAIOrderDataChanged, { "to": this.GetOrderData() });
|3786|3786| 			return;
|3787|3787| 		}
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required after '{'.
|----|    | /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
|4023|4023| 	if (data.timerRepeat === undefined)
|4024|4024| 		this.timer = undefined;
|4025|4025| 
|4026|    |-	this.UnitFsm.ProcessMessage(this, {"type": "Timer", "data": data, "latene