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

This commit is contained in:
2026-09-20 11:35:49 +02:00
parent 06e2a70fdb
commit 8806482450
+6 -5
View File
@@ -38,16 +38,17 @@ jobs:
- name: Install luacheck - name: Install luacheck
run: luarocks install luacheck run: luarocks install luacheck
# "lfs",
# "setmetatable", "getmetatable", "table", "string", "math", "pairs", "ipairs",
# "require", "type", "tostring", "io", "error", "pcall", "tonumber",
# "loadstring",
- name: Create LuaCheck Config - name: Create LuaCheck Config
run: | run: |
cat << EOF > .luacheckrc cat << EOF > .luacheckrc
std = { std = {
"lua51c",
globals = { globals = {
"lfs",
"setmetatable", "getmetatable", "table", "string", "math", "pairs", "ipairs",
"require", "type", "tostring", "io", "error", "pcall", "tonumber",
"loadstring",
"SpearheadConfig", "SpearheadAPI", "GlobalCapCallBacks", "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",