LuaCheck: Fix typo in RC file name
This commit is contained in:
parent
b2798e5891
commit
e7575ad735
@ -51,7 +51,7 @@ On Linux, run `luacheck .` whilst in the root folder of your project.
|
|||||||
|
|
||||||
## Configuring LuaCheck
|
## Configuring LuaCheck
|
||||||
|
|
||||||
Create a file called .luacheck in the root of your project. This could be the
|
Create a file called .luacheckrc in the root of your project. This could be the
|
||||||
root of your game, modpack, or mod.
|
root of your game, modpack, or mod.
|
||||||
|
|
||||||
Put the following contents in it:
|
Put the following contents in it:
|
||||||
@ -61,13 +61,19 @@ unused_args = false
|
|||||||
allow_defined_top = true
|
allow_defined_top = true
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"minetest",
|
"minetest",
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
string = {fields = {"split"}},
|
string = {fields = {"split"}},
|
||||||
table = {fields = {"copy", "getn"}},
|
table = {fields = {"copy", "getn"}},
|
||||||
"vector", "default", "ItemStack",
|
|
||||||
|
-- Builtin
|
||||||
|
"vector", , "ItemStack",
|
||||||
|
"dump", "DIR_DELIM", "VoxelArea", "Settings",
|
||||||
|
|
||||||
|
-- MTG
|
||||||
|
"default", "sfinv", "creative",
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user