Add core to the globals list in .luacheckrc
This commit is contained in:
@@ -3,7 +3,8 @@ allow_defined_top = true
|
|||||||
exclude_files = {".luacheckrc"}
|
exclude_files = {".luacheckrc"}
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"minetest",
|
-- This is needed so running luacheck on a single file will recognize it
|
||||||
|
"stripped_tree",
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
@@ -11,7 +12,7 @@ read_globals = {
|
|||||||
table = {fields = {"copy", "getn"}},
|
table = {fields = {"copy", "getn"}},
|
||||||
|
|
||||||
-- Builtin
|
-- Builtin
|
||||||
"vector", "ItemStack",
|
"minetest", "core", "vector", "ItemStack",
|
||||||
"dump", "DIR_DELIM", "VoxelArea", "Settings",
|
"dump", "DIR_DELIM", "VoxelArea", "Settings",
|
||||||
|
|
||||||
-- MTG
|
-- MTG
|
||||||
|
|||||||
Reference in New Issue
Block a user