Entities have different sound entries for build and repair orders in templates but currently only one is used.
This patch is using build order for foundations and repair order for anything else keeping hotkeys, mouse clicks and actions modified with button grouped,
so there is no change for user.
Details
- Reviewers
Freagarach - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) - Commits
- rP23221: Allow to play different sound when building new structure and when repairing…
- Trac Tickets
- #5374
- Check code
- Check logic
- Check sound is played in both situations
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Branch
- /ps/trunk
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 10223 Build 17361: Vulcan Build Jenkins Build 17360: Vulcan Build (Windows) Jenkins Build 17359: arc lint + arc unit
Event Timeline
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/115/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/gui/session/unit_actions.js | 625| » » » switch·(tradingDetails.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. Executing section cli...
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/624/display/redirect
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/116/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/gui/session/unit_actions.js | 625| » » » switch·(tradingDetails.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. Executing section cli...
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/625/display/redirect
binaries/data/mods/public/gui/session/unit_actions.js | ||
---|---|---|
433 | I guess this is the only difference between the two objects, so it might be good to consider avoiding the duplication and checking for the target entity type instead. |
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/234/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/gui/session/unit_actions.js | 563| » » » switch·(tradingDetails.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. Executing section cli...
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/746/display/redirect
Do you mind extending it to template_unit_support_female_citizen and template_unit_support_slave?
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/571/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/gui/session/unit_actions.js | 563| » » » switch·(tradingDetails.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. Executing section cli...
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1085/display/redirect
- Works like a charm.
- Code looks good.
- No deduplication possible.
- No extension possible/needed.
- Nice addition.
binaries/data/mods/public/gui/session/unit_actions.js | ||
---|---|---|
367 | Perhaps split in newlines? |
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/703/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/gui/session/unit_actions.js | 563| » » » switch·(tradingDetails.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. | | [NORMAL] ESLintBear (space-unary-ops): | | Unary word operator 'typeof' must be followed by whitespace. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 329| 329| } | 330| 330| | 331| 331| var wallPlacementInfo = updateBuildingPlacementPreview(); // entities making up the wall (wall segments, towers, ...) | 332| |- if (!(wallPlacementInfo === false || typeof(wallPlacementInfo) === "object")) | | 332|+ if (!(wallPlacementInfo === false || typeof (wallPlacementInfo) === "object")) | 333| 333| { | 334| 334| error("Invalid updateBuildingPlacementPreview return value: " + uneval(wallPlacementInfo)); | 335| 335| return false; | | [NORMAL] ESLintBear (operator-linebreak): | | '&&' should be placed at the end of the line. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 479| 479| mouseIsOverObject = (hoveredObject != null); | 480| 480| | 481| 481| // Close the menu when interacting with the game world | 482| |- if (!mouseIsOverObject && (ev.type =="mousebuttonup" || ev.type == "mousebuttondown") | 483| |- && (ev.button == SDL_BUTTON_LEFT || ev.button == SDL_BUTTON_RIGHT)) | | 482|+ if (!mouseIsOverObject && (ev.type =="mousebuttonup" || ev.type == "mousebuttondown") && | | 483|+ (ev.button == SDL_BUTTON_LEFT || ev.button == SDL_BUTTON_RIGHT)) | 484| 484| g_Menu.close(); | 485| 485| | 486| 486| // State-machine processing: | | [NORMAL] ESLintBear (indent): | | Expected indentation of 2 tabs but found 3. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 640| 640| // user to continue building walls. | 641| 641| switch (ev.type) | 642| 642| { | 643| |- case "mousemotion": | | 643|+ case "mousemotion": | 644| 644| placementSupport.wallEndPosition = Engine.GetTerrainAtScreenPoint(ev.x, ev.y); | 645| 645| | 646| 646| // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 641| 641| switch (ev.type) | 642| 642| { | 643| 643| case "mousemotion": | 644| |- placementSupport.wallEndPosition = Engine.GetTerrainAtScreenPoint(ev.x, ev.y); | | 644|+ placementSupport.wallEndPosition = Engine.GetTerrainAtScreenPoint(ev.x, ev.y); | 645| 645| | 646| 646| // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | 647| 647| // the ending point and the starting point to snap to. | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 643| 643| case "mousemotion": | 644| 644| placementSupport.wallEndPosition = Engine.GetTerrainAtScreenPoint(ev.x, ev.y); | 645| 645| | 646| |- // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | | 646|+ // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | 647| 647| // the ending point and the starting point to snap to. | 648| 648| // | 649| 649| // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 644| 644| placementSupport.wallEndPosition = Engine.GetTerrainAtScreenPoint(ev.x, ev.y); | 645| 645| | 646| 646| // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | 647| |- // the ending point and the starting point to snap to. | | 647|+ // the ending point and the starting point to snap to. | 648| 648| // | 649| 649| // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | 650| 650| // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 645| 645| | 646| 646| // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | 647| 647| // the ending point and the starting point to snap to. | 648| |- // | | 648|+ // | 649| 649| // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | 650| 650| // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | 651| 651| // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 646| 646| // Update the building placement preview, and by extension, the list of snapping candidate entities for both (!) | 647| 647| // the ending point and the starting point to snap to. | 648| 648| // | 649| |- // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | | 649|+ // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | 650| 650| // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | 651| 651| // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | 652| 652| // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 647| 647| // the ending point and the starting point to snap to. | 648| 648| // | 649| 649| // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | 650| |- // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | | 650|+ // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | 651| 651| // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | 652| 652| // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | 653| 653| // in them. Might be useful to query only for entities within a certain range around the starting point and ending | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 648| 648| // | 649| 649| // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | 650| 650| // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | 651| |- // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | | 651|+ // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | 652| 652| // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | 653| 653| // in them. Might be useful to query only for entities within a certain range around the starting point and ending | 654| 654| // points. | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 649| 649| // TODO: Note that here, we need to fetch all similar entities, including any offscreen ones, to support the case | 650| 650| // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | 651| 651| // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | 652| |- // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | | 652|+ // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | 653| 653| // in them. Might be useful to query only for entities within a certain range around the starting point and ending | 654| 654| // points. | 655| 655| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 650| 650| // where the snap entity for the starting point has moved offscreen, or has been deleted/destroyed, or was a | 651| 651| // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | 652| 652| // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | 653| |- // in them. Might be useful to query only for entities within a certain range around the starting point and ending | | 653|+ // in them. Might be useful to query only for entities within a certain range around the starting point and ending | 654| 654| // points. | 655| 655| | 656| 656| placementSupport.wallSnapEntitiesIncludeOffscreen = true; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 651| 651| // foundation and has been replaced with a completed entity since the user first chose it. Fetching all towers on | 652| 652| // the entire map instead of only the current screen might get expensive fast since walls all have a ton of towers | 653| 653| // in them. Might be useful to query only for entities within a certain range around the starting point and ending | 654| |- // points. | | 654|+ // points. | 655| 655| | 656| 656| placementSupport.wallSnapEntitiesIncludeOffscreen = true; | 657| 657| var result = updateBuildingPlacementPreview(); // includes an update of the snap entity candidates | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 653| 653| // in them. Might be useful to query only for entities within a certain range around the starting point and ending | 654| 654| // points. | 655| 655| | 656| |- placementSupport.wallSnapEntitiesIncludeOffscreen = true; | | 656|+ placementSupport.wallSnapEntitiesIncludeOffscreen = true; | 657| 657| var result = updateBuildingPlacementPreview(); // includes an update of the snap entity candidates | 658| 658| | 659| 659| if (result && result.cost) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 654| 654| // points. | 655| 655| | 656| 656| placementSupport.wallSnapEntitiesIncludeOffscreen = true; | 657| |- var result = updateBuildingPlacementPreview(); // includes an update of the snap entity candidates | | 657|+ var result = updateBuildingPlacementPreview(); // includes an update of the snap entity candidates | 658| 658| | 659| 659| if (result && result.cost) | 660| 660| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 656| 656| placementSupport.wallSnapEntitiesIncludeOffscreen = true; | 657| 657| var result = updateBuildingPlacementPreview(); // includes an update of the snap entity candidates | 658| 658| | 659| |- if (result && result.cost) | | 659|+ if (result && result.cost) | 660| 660| { | 661| 661| var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | 662| 662| placementSupport.tooltipMessage = [ | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 657| 657| var result = updateBuildingPlacementPreview(); // includes an update of the snap entity candidates | 658| 658| | 659| 659| if (result && result.cost) | 660| |- { | | 660|+ { | 661| 661| var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | 662| 662| placementSupport.tooltipMessage = [ | 663| 663| getEntityCostTooltip(result), | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 658| 658| | 659| 659| if (result && result.cost) | 660| 660| { | 661| |- var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | | 661|+ var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | 662| 662| placementSupport.tooltipMessage = [ | 663| 663| getEntityCostTooltip(result), | 664| 664| getNeededResourcesTooltip(neededResources) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 659| 659| if (result && result.cost) | 660| 660| { | 661| 661| var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | 662| |- placementSupport.tooltipMessage = [ | | 662|+ placementSupport.tooltipMessage = [ | 663| 663| getEntityCostTooltip(result), | 664| 664| getNeededResourcesTooltip(neededResources) | 665| 665| ].filter(tip => tip).join("\n"); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 660| 660| { | 661| 661| var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | 662| 662| placementSupport.tooltipMessage = [ | 663| |- getEntityCostTooltip(result), | | 663|+ getEntityCostTooltip(result), | 664| 664| getNeededResourcesTooltip(neededResources) | 665| 665| ].filter(tip => tip).join("\n"); | 666| 666| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 661| 661| var neededResources = Engine.GuiInterfaceCall("GetNeededResources", { "cost": result.cost }); | 662| 662| placementSupport.tooltipMessage = [ | 663| 663| getEntityCostTooltip(result), | 664| |- getNeededResourcesTooltip(neededResources) | | 664|+ getNeededResourcesTooltip(neededResources) | 665| 665| ].filter(tip => tip).join("\n"); | 666| 666| } | 667| 667| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 662| 662| placementSupport.tooltipMessage = [ | 663| 663| getEntityCostTooltip(result), | 664| 664| getNeededResourcesTooltip(neededResources) | 665| |- ].filter(tip => tip).join("\n"); | | 665|+ ].filter(tip => tip).join("\n"); | 666| 666| } | 667| 667| | 668| 668| break; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 663| 663| getEntityCostTooltip(result), | 664| 664| getNeededResourcesTooltip(neededResources) | 665| 665| ].filter(tip => tip).join("\n"); | 666| |- } | | 666|+ } | 667| 667| | 668| 668| break; | 669| 669| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 665| 665| ].filter(tip => tip).join("\n"); | 666| 666| } | 667| 667| | 668| |- break; | | 668|+ break; | 669| 669| | 670| 670| case "mousebuttondown": | 671| 671| if (ev.button == SDL_BUTTON_LEFT) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 2 tabs but found 3. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 667| 667| | 668| 668| break; | 669| 669| | 670| |- case "mousebuttondown": | | 670|+ case "mousebuttondown": | 671| 671| if (ev.button == SDL_BUTTON_LEFT) | 672| 672| { | 673| 673| var queued = Engine.HotkeyIsPressed("session.queue"); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 668| 668| break; | 669| 669| | 670| 670| case "mousebuttondown": | 671| |- if (ev.button == SDL_BUTTON_LEFT) | | 671|+ if (ev.button == SDL_BUTTON_LEFT) | 672| 672| { | 673| 673| var queued = Engine.HotkeyIsPressed("session.queue"); | 674| 674| if (tryPlaceWall(queued)) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 669| 669| | 670| 670| case "mousebuttondown": | 671| 671| if (ev.button == SDL_BUTTON_LEFT) | 672| |- { | | 672|+ { | 673| 673| var queued = Engine.HotkeyIsPressed("session.queue"); | 674| 674| if (tryPlaceWall(queued)) | 675| 675| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 670| 670| case "mousebuttondown": | 671| 671| if (ev.button == SDL_BUTTON_LEFT) | 672| 672| { | 673| |- var queued = Engine.HotkeyIsPressed("session.queue"); | | 673|+ var queued = Engine.HotkeyIsPressed("session.queue"); | 674| 674| if (tryPlaceWall(queued)) | 675| 675| { | 676| 676| if (queued) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 671| 671| if (ev.button == SDL_BUTTON_LEFT) | 672| 672| { | 673| 673| var queued = Engine.HotkeyIsPressed("session.queue"); | 674| |- if (tryPlaceWall(queued)) | | 674|+ if (tryPlaceWall(queued)) | 675| 675| { | 676| 676| if (queued) | 677| 677| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 672| 672| { | 673| 673| var queued = Engine.HotkeyIsPressed("session.queue"); | 674| 674| if (tryPlaceWall(queued)) | 675| |- { | | 675|+ { | 676| 676| if (queued) | 677| 677| { | 678| 678| // continue building, just set a new starting position where we left off | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 673| 673| var queued = Engine.HotkeyIsPressed("session.queue"); | 674| 674| if (tryPlaceWall(queued)) | 675| 675| { | 676| |- if (queued) | | 676|+ if (queued) | 677| 677| { | 678| 678| // continue building, just set a new starting position where we left off | 679| 679| placementSupport.position = placementSupport.wallEndPosition; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 674| 674| if (tryPlaceWall(queued)) | 675| 675| { | 676| 676| if (queued) | 677| |- { | | 677|+ { | 678| 678| // continue building, just set a new starting position where we left off | 679| 679| placementSupport.position = placementSupport.wallEndPosition; | 680| 680| placementSupport.wallEndPosition = undefined; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 675| 675| { | 676| 676| if (queued) | 677| 677| { | 678| |- // continue building, just set a new starting position where we left off | | 678|+ // continue building, just set a new starting position where we left off | 679| 679| placementSupport.position = placementSupport.wallEndPosition; | 680| 680| placementSupport.wallEndPosition = undefined; | 681| 681| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 676| 676| if (queued) | 677| 677| { | 678| 678| // continue building, just set a new starting position where we left off | 679| |- placementSupport.position = placementSupport.wallEndPosition; | | 679|+ placementSupport.position = placementSupport.wallEndPosition; | 680| 680| placementSupport.wallEndPosition = undefined; | 681| 681| | 682| 682| inputState = INPUT_BUILDING_WALL_CLICK; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 677| 677| { | 678| 678| // continue building, just set a new starting position where we left off | 679| 679| placementSupport.position = placementSupport.wallEndPosition; | 680| |- placementSupport.wallEndPosition = undefined; | | 680|+ placementSupport.wallEndPosition = undefined; | 681| 681| | 682| 682| inputState = INPUT_BUILDING_WALL_CLICK; | 683| 683| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 679| 679| placementSupport.position = placementSupport.wallEndPosition; | 680| 680| placementSupport.wallEndPosition = undefined; | 681| 681| | 682| |- inputState = INPUT_BUILDING_WALL_CLICK; | | 682|+ inputState = INPUT_BUILDING_WALL_CLICK; | 683| 683| } | 684| 684| else | 685| 685| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 680| 680| placementSupport.wallEndPosition = undefined; | 681| 681| | 682| 682| inputState = INPUT_BUILDING_WALL_CLICK; | 683| |- } | | 683|+ } | 684| 684| else | 685| 685| { | 686| 686| placementSupport.Reset(); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 681| 681| | 682| 682| inputState = INPUT_BUILDING_WALL_CLICK; | 683| 683| } | 684| |- else | | 684|+ else | 685| 685| { | 686| 686| placementSupport.Reset(); | 687| 687| inputState = INPUT_NORMAL; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 682| 682| inputState = INPUT_BUILDING_WALL_CLICK; | 683| 683| } | 684| 684| else | 685| |- { | | 685|+ { | 686| 686| placementSupport.Reset(); | 687| 687| inputState = INPUT_NORMAL; | 688| 688| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 683| 683| } | 684| 684| else | 685| 685| { | 686| |- placementSupport.Reset(); | | 686|+ placementSupport.Reset(); | 687| 687| inputState = INPUT_NORMAL; | 688| 688| } | 689| 689| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 684| 684| else | 685| 685| { | 686| 686| placementSupport.Reset(); | 687| |- inputState = INPUT_NORMAL; | | 687|+ inputState = INPUT_NORMAL; | 688| 688| } | 689| 689| } | 690| 690| else | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 685| 685| { | 686| 686| placementSupport.Reset(); | 687| 687| inputState = INPUT_NORMAL; | 688| |- } | | 688|+ } | 689| 689| } | 690| 690| else | 691| 691| placementSupport.tooltipMessage = translate("Cannot build wall here!"); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 686| 686| placementSupport.Reset(); | 687| 687| inputState = INPUT_NORMAL; | 688| 688| } | 689| |- } | | 689|+ } | 690| 690| else | 691| 691| placementSupport.tooltipMessage = translate("Cannot build wall here!"); | 692| 692| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 687| 687| inputState = INPUT_NORMAL; | 688| 688| } | 689| 689| } | 690| |- else | | 690|+ else | 691| 691| placementSupport.tooltipMessage = translate("Cannot build wall here!"); | 692| 692| | 693| 693| updateBuildingPlacementPreview(); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 688| 688| } | 689| 689| } | 690| 690| else | 691| |- placementSupport.tooltipMessage = translate("Cannot build wall here!"); | | 691|+ placementSupport.tooltipMessage = translate("Cannot build wall here!"); | 692| 692| | 693| 693| updateBuildingPlacementPreview(); | 694| 694| return true; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 690| 690| else | 691| 691| placementSupport.tooltipMessage = translate("Cannot build wall here!"); | 692| 692| | 693| |- updateBuildingPlacementPreview(); | | 693|+ updateBuildingPlacementPreview(); | 694| 694| return true; | 695| 695| } | 696| 696| else if (ev.button == SDL_BUTTON_RIGHT) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 691| 691| placementSupport.tooltipMessage = translate("Cannot build wall here!"); | 692| 692| | 693| 693| updateBuildingPlacementPreview(); | 694| |- return true; | | 694|+ return true; | 695| 695| } | 696| 696| else if (ev.button == SDL_BUTTON_RIGHT) | 697| 697| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 692| 692| | 693| 693| updateBuildingPlacementPreview(); | 694| 694| return true; | 695| |- } | | 695|+ } | 696| 696| else if (ev.button == SDL_BUTTON_RIGHT) | 697| 697| { | 698| 698| // reset to normal input mode | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 693| 693| updateBuildingPlacementPreview(); | 694| 694| return true; | 695| 695| } | 696| |- else if (ev.button == SDL_BUTTON_RIGHT) | | 696|+ else if (ev.button == SDL_BUTTON_RIGHT) | 697| 697| { | 698| 698| // reset to normal input mode | 699| 699| placementSupport.Reset(); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 694| 694| return true; | 695| 695| } | 696| 696| else if (ev.button == SDL_BUTTON_RIGHT) | 697| |- { | | 697|+ { | 698| 698| // reset to normal input mode | 699| 699| placementSupport.Reset(); | 700| 700| updateBuildingPlacementPreview(); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 695| 695| } | 696| 696| else if (ev.button == SDL_BUTTON_RIGHT) | 697| 697| { | 698| |- // reset to normal input mode | | 698|+ // reset to normal input mode | 699| 699| placementSupport.Reset(); | 700| 700| updateBuildingPlacementPreview(); | 701| 701| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 696| 696| else if (ev.button == SDL_BUTTON_RIGHT) | 697| 697| { | 698| 698| // reset to normal input mode | 699| |- placementSupport.Reset(); | | 699|+ placementSupport.Reset(); | 700| 700| updateBuildingPlacementPreview(); | 701| 701| | 702| 702| inputState = INPUT_NORMAL; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 697| 697| { | 698| 698| // reset to normal input mode | 699| 699| placementSupport.Reset(); | 700| |- updateBuildingPlacementPreview(); | | 700|+ updateBuildingPlacementPreview(); | 701| 701| | 702| 702| inputState = INPUT_NORMAL; | 703| 703| return true; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 699| 699| placementSupport.Reset(); | 700| 700| updateBuildingPlacementPreview(); | 701| 701| | 702| |- inputState = INPUT_NORMAL; | | 702|+ inputState = INPUT_NORMAL; | 703| 703| return true; | 704| 704| } | 705| 705| break; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 700| 700| updateBuildingPlacementPreview(); | 701| 701| | 702| 702| inputState = INPUT_NORMAL; | 703| |- return true; | | 703|+ return true; | 704| 704| } | 705| 705| break; | 706| 706| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 701| 701| | 702| 702| inputState = INPUT_NORMAL; | 703| 703| return true; | 704| |- } | | 704|+ } | 705| 705| break; | 706| 706| } | 707| 707| break; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 702| 702| inputState = INPUT_NORMAL; | 703| 703| return true; | 704| 704| } | 705| |- break; | | 705|+ break; | 706| 706| } | 707| 707| break; | 708| 708| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 841| 841| break; | 842| 842| | 843| 843| case "hotkeydown": | 844| |- if (ev.hotkey.indexOf("selection.group.") == 0) | | 844|+ if (ev.hotkey.indexOf("selection.group.") == 0) | 845| 845| { | 846| 846| let now = Date.now(); | 847| 847| if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 842| 842| | 843| 843| case "hotkeydown": | 844| 844| if (ev.hotkey.indexOf("selection.group.") == 0) | 845| |- { | | 845|+ { | 846| 846| let now = Date.now(); | 847| 847| if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | 848| 848| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 843| 843| case "hotkeydown": | 844| 844| if (ev.hotkey.indexOf("selection.group.") == 0) | 845| 845| { | 846| |- let now = Date.now(); | | 846|+ let now = Date.now(); | 847| 847| if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | 848| 848| { | 849| 849| if (ev.hotkey.indexOf("selection.group.select.") == 0) | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 844| 844| if (ev.hotkey.indexOf("selection.group.") == 0) | 845| 845| { | 846| 846| let now = Date.now(); | 847| |- if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | | 847|+ if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | 848| 848| { | 849| 849| if (ev.hotkey.indexOf("selection.group.select.") == 0) | 850| 850| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 845| 845| { | 846| 846| let now = Date.now(); | 847| 847| if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | 848| |- { | | 848|+ { | 849| 849| if (ev.hotkey.indexOf("selection.group.select.") == 0) | 850| 850| { | 851| 851| var sptr = ev.hotkey.split("."); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 846| 846| let now = Date.now(); | 847| 847| if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | 848| 848| { | 849| |- if (ev.hotkey.indexOf("selection.group.select.") == 0) | | 849|+ if (ev.hotkey.indexOf("selection.group.select.") == 0) | 850| 850| { | 851| 851| var sptr = ev.hotkey.split("."); | 852| 852| performGroup("snap", sptr[3]); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 847| 847| if (now - doublePressTimer < doublePressTime && ev.hotkey == prevHotkey) | 848| 848| { | 849| 849| if (ev.hotkey.indexOf("selection.group.select.") == 0) | 850| |- { | | 850|+ { | 851| 851| var sptr = ev.hotkey.split("."); | 852| 852| performGroup("snap", sptr[3]); | 853| 853| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 848| 848| { | 849| 849| if (ev.hotkey.indexOf("selection.group.select.") == 0) | 850| 850| { | 851| |- var sptr = ev.hotkey.split("."); | | 851|+ var sptr = ev.hotkey.split("."); | 852| 852| performGroup("snap", sptr[3]); | 853| 853| } | 854| 854| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 6 tabs but found 7. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 849| 849| if (ev.hotkey.indexOf("selection.group.select.") == 0) | 850| 850| { | 851| 851| var sptr = ev.hotkey.split("."); | 852| |- performGroup("snap", sptr[3]); | | 852|+ performGroup("snap", sptr[3]); | 853| 853| } | 854| 854| } | 855| 855| else | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 850| 850| { | 851| 851| var sptr = ev.hotkey.split("."); | 852| 852| performGroup("snap", sptr[3]); | 853| |- } | | 853|+ } | 854| 854| } | 855| 855| else | 856| 856| { | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 851| 851| var sptr = ev.hotkey.split("."); | 852| 852| performGroup("snap", sptr[3]); | 853| 853| } | 854| |- } | | 854|+ } | 855| 855| else | 856| 856| { | 857| 857| var sptr = ev.hotkey.split("."); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 852| 852| performGroup("snap", sptr[3]); | 853| 853| } | 854| 854| } | 855| |- else | | 855|+ else | 856| 856| { | 857| 857| var sptr = ev.hotkey.split("."); | 858| 858| performGroup(sptr[2], sptr[3]); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 853| 853| } | 854| 854| } | 855| 855| else | 856| |- { | | 856|+ { | 857| 857| var sptr = ev.hotkey.split("."); | 858| 858| performGroup(sptr[2], sptr[3]); | 859| 859| | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 854| 854| } | 855| 855| else | 856| 856| { | 857| |- var sptr = ev.hotkey.split("."); | | 857|+ var sptr = ev.hotkey.split("."); | 858| 858| performGroup(sptr[2], sptr[3]); | 859| 859| | 860| 860| doublePressTimer = now; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 855| 855| else | 856| 856| { | 857| 857| var sptr = ev.hotkey.split("."); | 858| |- performGroup(sptr[2], sptr[3]); | | 858|+ performGroup(sptr[2], sptr[3]); | 859| 859| | 860| 860| doublePressTimer = now; | 861| 861| prevHotkey = ev.hotkey; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 857| 857| var sptr = ev.hotkey.split("."); | 858| 858| performGroup(sptr[2], sptr[3]); | 859| 859| | 860| |- doublePressTimer = now; | | 860|+ doublePressTimer = now; | 861| 861| prevHotkey = ev.hotkey; | 862| 862| } | 863| 863| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 5 tabs but found 6. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 858| 858| performGroup(sptr[2], sptr[3]); | 859| 859| | 860| 860| doublePressTimer = now; | 861| |- prevHotkey = ev.hotkey; | | 861|+ prevHotkey = ev.hotkey; | 862| 862| } | 863| 863| } | 864| 864| break; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 4 tabs but found 5. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 859| 859| | 860| 860| doublePressTimer = now; | 861| 861| prevHotkey = ev.hotkey; | 862| |- } | | 862|+ } | 863| 863| } | 864| 864| break; | 865| 865| } | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 860| 860| doublePressTimer = now; | 861| 861| prevHotkey = ev.hotkey; | 862| 862| } | 863| |- } | | 863|+ } | 864| 864| break; | 865| 865| } | 866| 866| break; | | [NORMAL] ESLintBear (indent): | | Expected indentation of 3 tabs but found 4. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | 861| 861| prevHotkey = ev.hotkey; | 862| 862| } | 863| 863| } | 864| |- break; | | 864|+ break; | 865| 865| } | 866| 866| break; | 867| 867| | | [NORMAL] ESLintBear (comma-spacing): | | A space is required after ','. |----| | /zpool0/trunk/binaries/data/mods/public/gui/session/input.js | |++++| /zpool0/trunk/binaries/data/mods/public/gui/session/input.js |1573|1573| var selectall = Engine.HotkeyIsPressed("selection.offscreen"); |1574|1574| |1575|1575| // Reset the last idle unit, etc., if the selection type has changed. |1576| |- if (selectall || classes.length != lastIdleClasses.length || !classes.every((v,i) => v === lastIdleClasses[i])) | |1576|+ if (selectall || classes.length != lastIdleClasses.length || !classes.every((v, i) => v === lastIdleClasses[i])) |1577|1577| resetIdleUnit(); |1578|1578| lastIdleClasses = classes; |1579|1579| binaries/data/mods/public/gui/session/input.js | 231| » var·target·=·undefined; | | [NORMAL] ESLintBear (no-undef-init): | | It's not necessary to initialize 'target' to undefined. binaries/data/mods/public/gui/session/input.js | 245| » var·actionInfo·=·undefined; | | [NORMAL] ESLintBear (no-undef-init): | | It's not necessary to initialize 'actionInfo' to undefined. binaries/data/mods/public/gui/session/input.js | 468| » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 495| » switch·(inputState) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 499| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 554| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 564| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 612| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 641| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 710| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 808| » switch·(inputState) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 811| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 913| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js |1002| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js |1016| » » » » let·action·=·determineAction(ev.x,·ev.y); | | [NORMAL] ESLintBear (no-shadow): | | 'action' is already declared in the upper scope. binaries/data/mods/public/gui/session/input.js |1025| » » switch·(ev.type) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js |1094| » » » switch·(ev.hotkey) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js |1524| » switch·(action) | | [NORMAL] ESLintBear (default-case): | | Expected a default case. binaries/data/mods/public/gui/session/input.js | 231| » var·target·=·undefined; | | [NORMAL] JSHintBear: | | It's not necessary to initialize 'target' to 'undefined'. binaries/data/mods/public/gui/session/input.js | 245| » var·actionInfo·=·undefined; | | [NORMAL] JSHintBear: | | It's not necessary to initialize 'actionInfo' to 'undefined'. binaries/data/mods/public/gui/session/input.js | 259| » for·(var·action·of·actions) | | [NORMAL] JSHintBear: | | 'action' is already defined. binaries/data/mods/public/gui/session/input.js | 262| » » » var·r·=·g_UnitActions[action].hotkeyActionCheck(target,·selection); | | [NORMAL] JSHintBear: | | 'r' is already defined. binaries/data/mods/public/gui/session/input.js | 267| » for·(var·action·of·actions) | | [NORMAL] JSHintBear: | | 'action' is already defined. binaries/data/mods/public/gui/session/input.js | 270| » » » var·r·=·g_UnitActions[action].actionCheck(target,·selection); | | [NORMAL] JSHintBear: | | 'r' is already defined. binaries/data/mods/public/gui/session/input.js | 483| » » &&·(ev.button·==·SDL_BUTTON_LEFT·||·ev.button·==·SDL_BUTTON_RIGHT)) | | [NORMAL] JSHintBear: | | Misleading line break before '&&'; readers may interpret this as an expression boundary. binaries/data/mods/public/gui/session/input.js | 513| » » » » var·rect·=·updateBandbox(bandbox,·ev,·true); | | [NORMAL] JSHintBear: | | 'rect' is already defined. binaries/data/mods/public/gui/session/input.js | 516| » » » » var·ents·=·getPreferredEntities(Engine.PickPlayerEntitiesInRect(rect[0],·rect[1],·rect[2],·rect[3],·g_ViewedPlayer)); | | [NORMAL] JSHintBear: | | 'ents' is already defined. binaries/data/mods/public/gui/session/input.js | 673| » » » » » var·queued·=·Engine.HotkeyIsPressed("session.queue"); | | [NORMAL] JSHintBear: | | 'queued' is already defined. binaries/data/mods/public/gui/session/input.js | 744| » » » » var·queued·=·Engine.HotkeyIsPressed("session.queue"); | | [NORMAL] JSHintBear: | | 'queued' is already defined. binaries/data/mods/public/gui/session/input.js | 857| » » » » » » var·sptr·=·ev.hotkey.split("."); | | [NORMAL] JSHintBear: | | 'sptr' is already defined. binaries/data/mods/public/gui/session/input.js | 873| » » » var·ent·=·Engine.PickEntityAtPoint(ev.x,·ev.y); | | [NORMAL] JSHintBear: | | 'ent' is already defined. binaries/data/mods/public/gui/session/input.js | 899| » » » } | | [NORMAL] JSHintBear: | | Expected a 'break' statement before 'default'. binaries/data/mods/public/gui/session/input.js | 923| » » » var·ent·=·Engine.PickEntityAtPoint(ev.x,·ev.y); | | [NORMAL] JSHintBear: | | 'ent' is already defined. Executing section cli...
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1219/display/redirect