Added luacheck config
This commit is contained in:
@@ -38,16 +38,17 @@ jobs:
|
||||
- name: 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
|
||||
run: |
|
||||
cat << EOF > .luacheckrc
|
||||
std = {
|
||||
"lua51c",
|
||||
globals = {
|
||||
"lfs",
|
||||
"setmetatable", "getmetatable", "table", "string", "math", "pairs", "ipairs",
|
||||
"require", "type", "tostring", "io", "error", "pcall", "tonumber",
|
||||
"loadstring",
|
||||
|
||||
"SpearheadConfig", "SpearheadAPI", "GlobalCapCallBacks",
|
||||
"env", "net", "trigger", "timer", "Object", "land", "coord", "coalition",
|
||||
"Unit", "Group", "Airbase", "StaticObject", "SceneryObject", "world",
|
||||
|
||||
Reference in New Issue
Block a user