From 1293c0c55cdcad14242133ef4dba29cd446a0cac Mon Sep 17 00:00:00 2001 From: Hugues Ross Date: Mon, 1 Jun 2020 07:32:12 -0400 Subject: [PATCH] Add luacheck configuration --- .luacheckrc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..12cbefd --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,32 @@ +read_globals = { + "DIR_DELIM", + "minetest", "core", + "dump", "dump2", + "vector", + "VoxelManip", "VoxelArea", + "PseudoRandom", "PcgRandom", + "ItemStack", + "Settings", + "unpack", + table = { + fields = { + "copy", + "indexof", + "insert_all", + "key_value_swap", + } + }, + string = { + fields = { + "split", + "trim", + } + }, + math = { + fields = { + "hypot", + "sign", + "factorial" + } + }, +}