added lua check CI step (#49)
Publish Release / build (push) Failing after 3s

Reviewed-on: #49
Co-authored-by: dutchie031 <timrorije@gmail.com>
This commit was merged in pull request #49.
This commit is contained in:
2026-09-20 16:08:04 +00:00
committed by dutchie031
parent 9b2540d461
commit 9549e8c48e
61 changed files with 1058 additions and 881 deletions
+13 -10
View File
@@ -1,12 +1,11 @@
local SpearheadEvents = require("classes.spearhead_events")
local RTBMission = require("classes.capClasses.taskings.RTB")
local Util = require("classes.util.Util")
local DcsUtil = require("classes.util.DcsUtil")
local GlobalConfig = require("classes.configuration.GlobalConfig")
local CustomDrawing = require("classes.stageClasses.drawings.CustomDrawing")
local DrawingHelper = require("classes.stageClasses.drawings.helper.DrawingHelper")
---@class AirGroup : OnUnitLostListener
---@class AirGroup : OnUnitLostListener, OnGroupRTBListener, OnGroupRTBInTenListener, OnLandEventListener, OnGroupOnStationListener
---@field protected _logger Logger
---@field protected _groupName string
---@field protected _groupType AirGroupType
@@ -81,7 +80,7 @@ function AirGroup:SetMission(mission)
end
end
local setMissionDelayed = function(data, time)
local setMissionDelayed = function(data, _)
data.self:SetMissionPrivate(data.mission)
end
@@ -108,8 +107,9 @@ function AirGroup:SetMissionPrivate(mission)
local points = {}
if mission and mission.params and mission.params.route and mission.params.route.points then
for _, wp in pairs(mission.params.route.points) do
if wp.x and wp.y then
local routePoints = mission.params.route.points --[[@as Array<Vec2> ]]
for _, wp in pairs(routePoints) do
if wp and wp.x and wp.y then
table.insert(points, { x = wp.x, y = wp.y })
end
end
@@ -199,6 +199,8 @@ function AirGroup:SpawnInternal(force, withoutLoadout)
end
---@param selfA AirGroup
---@param time number
---@return number?
local function CheckLivenessTask(selfA, time)
local interval = selfA:CheckLiveness()
if not interval then return end
@@ -264,6 +266,7 @@ function AirGroup:OnLastUnitLanded()
---@param data CheckGroupForRestartData
---@param time number
---@return number?
local checkGroupForRestart = function(data, time)
local group = Group.getByName(data.self:GetName())
if not group then
@@ -357,7 +360,7 @@ do --- RESPAWN FUNCTIONS
self:SetState("Dead")
---@param selfA AirGroup
local respawnTask = function(selfA, time)
local respawnTask = function(selfA, _)
selfA:StartRepair()
end
@@ -376,8 +379,7 @@ do --- RESPAWN FUNCTIONS
end
---comment
---@param selfA AirGroup
local rearmTask = function(selfA, time)
local rearmTask = function(_, _)
self:StartRearm()
end
@@ -402,7 +404,7 @@ do --- RESPAWN FUNCTIONS
end
---@param selfA AirGroup
local rearmTask = function(selfA, time)
local rearmTask = function(selfA, _)
selfA:MarkRearmComplete()
end
@@ -415,6 +417,7 @@ end
do --EVENT LISTENERS
---@param unit Unit
function AirGroup:OnUnitLost(unit)
if unit == nil then return end
self:CheckLiveness()
end
@@ -434,7 +437,7 @@ do --EVENT LISTENERS
end
end
function AirGroup:OnUnitLanded(unit, airbase)
function AirGroup:OnUnitLanded(_, _)
local anyInAir = false
local group = Group.getByName(self._groupName)
if group then