Added luacheck config
PR Prerequisites / Lua Check (pull_request) Failing after 20s
PR Prerequisites / Bundles Without Errors (pull_request) Failing after 29s

This commit is contained in:
2026-09-20 11:39:46 +02:00
parent 8806482450
commit 9c6c72fc33
+9 -4
View File
@@ -46,16 +46,21 @@ jobs:
- name: Create LuaCheck Config - name: Create LuaCheck Config
run: | run: |
cat << EOF > .luacheckrc cat << EOF > .luacheckrc
std = {
"lua51c", stds.spearhead_lib = {
"SpearheadConfig", "SpearheadAPI", "GlobalCapCallBacks",
}
stds.dcs_lib = {
globals = { globals = {
"SpearheadConfig", "SpearheadAPI", "GlobalCapCallBacks",
"env", "net", "trigger", "timer", "Object", "land", "coord", "coalition", "env", "net", "trigger", "timer", "Object", "land", "coord", "coalition",
"Unit", "Group", "Airbase", "StaticObject", "SceneryObject", "world", "Unit", "Group", "Airbase", "StaticObject", "SceneryObject", "world",
"country", "missionCommands", "Controller", "Weapon", "atmosphere", "country" "country", "missionCommands", "Controller", "Weapon", "atmosphere", "country"
}, }
} }
std = "lua51c+spearhead_lib+dcs_lib"
max_line_length = false max_line_length = false
EOF EOF