mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Disable name style check due to open issue
https://github.com/LuaLS/lua-language-server/issues/2643
This commit is contained in:
13
.luarc.json
13
.luarc.json
@@ -17,18 +17,17 @@
|
|||||||
"global": "Any",
|
"global": "Any",
|
||||||
"luadoc": "Opened",
|
"luadoc": "Opened",
|
||||||
"redefined": "Opened",
|
"redefined": "Opened",
|
||||||
"strict": "Fallback",
|
"strict": "Any",
|
||||||
"strong": "Fallback",
|
"strong": "Any",
|
||||||
"type-check": "Any",
|
"type-check": "Any",
|
||||||
"unbalanced": "Opened",
|
"unbalanced": "Opened",
|
||||||
"unused": "Opened"
|
"unused": "Opened"
|
||||||
},
|
},
|
||||||
|
"$comment-name-style-check": "Disabled below until config issue fixed: https://github.com/LuaLS/lua-language-server/issues/2643",
|
||||||
"diagnostics.neededFileStatus": {
|
"diagnostics.neededFileStatus": {
|
||||||
"close-non-object": "Any",
|
"no-unknown": "None!",
|
||||||
"discard-returns": "Any",
|
"spell-check": "None!",
|
||||||
"deprecated": "None",
|
"name-style-check": "None!"
|
||||||
"no-unknown": "None",
|
|
||||||
"spell-check": "None!"
|
|
||||||
},
|
},
|
||||||
"nameStyle.config": {
|
"nameStyle.config": {
|
||||||
"local_name_style": [{
|
"local_name_style": [{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ lib.collect_statics = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
stats.mods = {}
|
stats.mods = {}
|
||||||
for name, version in pairs(game.active_mods) do
|
for name, version in pairs(script.active_mods) do
|
||||||
stats.mods[name] = version
|
stats.mods[name] = version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -104,10 +104,10 @@ function Public.dump_ignore_builder(ignore)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Public.dump_function(func)
|
function Public.dump_function(func)
|
||||||
local res = { "upvalues:\n" }
|
local res = { "upvalues:\n", "no longer available" }
|
||||||
|
|
||||||
local i = 1
|
local i = 1
|
||||||
while true do
|
--[[while true do
|
||||||
local n, v = debug.getupvalue(func, i)
|
local n, v = debug.getupvalue(func, i)
|
||||||
|
|
||||||
if n == nil then
|
if n == nil then
|
||||||
@@ -120,7 +120,7 @@ function Public.dump_function(func)
|
|||||||
end
|
end
|
||||||
|
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end]]
|
||||||
|
|
||||||
return concat(res)
|
return concat(res)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ end
|
|||||||
--- Same as require but will return nil if the module does not exist, all other errors will propagate to the caller
|
--- Same as require but will return nil if the module does not exist, all other errors will propagate to the caller
|
||||||
--- @param module_path string The path to the module to require, same syntax as normal require
|
--- @param module_path string The path to the module to require, same syntax as normal require
|
||||||
--- @return any # The contents of the module, or nil if the module does not exist or did not return a value
|
--- @return any # The contents of the module, or nil if the module does not exist or did not return a value
|
||||||
--- @deprecated
|
|
||||||
function ExpUtil.optional_require(module_path)
|
function ExpUtil.optional_require(module_path)
|
||||||
local success, rtn = xpcall(require, traceback, module_path)
|
local success, rtn = xpcall(require, traceback, module_path)
|
||||||
if success then return rtn end
|
if success then return rtn end
|
||||||
|
|||||||
Reference in New Issue
Block a user