Added luacheck config
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user