-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.luacheckrc
45 lines (37 loc) · 1.03 KB
/
.luacheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
unused_args = false
-- Exclude regression tests / unit tests
exclude_files = {
"**/core/**",
"**/spec/**",
"**/demo_spec/**",
}
globals = {
-- Globals
"type",
-- Mineunit
"mineunit", "world",
"mineunit_path", "fixture", "fixture_path", "sourcefile",
-- Engine
"INIT", "PLATFORM", "DIR_DELIM",
"core", "minetest",
"vector", "dump","dump2",
-- MTG
"default",
}
read_globals = {
-- luassert
assert = { fields = {
"is_string", "is_table", "player_or_name", "is_ItemStack", "is_Player",
"is_true", "is_itemstring", "is_itemname", "is_number",
"is_nil", "not_nil",
"is_indexed", "is_hashed", "in_array",
}},
-- Mineunit
"mineunit_config", "mineunit_conf_defaults", "mineunit_conf_override",
"NodeTimerRef", "MetaDataRef", "NodeMetaRef", "ObjectRef", "InvRef",
-- Minetest
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn", "indexof", "insert_all", "key_value_swap", "shuffle"}},
math = {fields = {"hypot", "sign", "factorial"}},
"PseudoRandom", "ItemStack", "VoxelArea", "VoxelManip", "Settings",
}