From e7575ad73599403920a9f877b04d2d23a89a7759 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 12 Apr 2018 01:02:22 +0100 Subject: [PATCH] LuaCheck: Fix typo in RC file name --- en/chapters/luacheck.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/en/chapters/luacheck.md b/en/chapters/luacheck.md index 2a185e8..ce00e33 100644 --- a/en/chapters/luacheck.md +++ b/en/chapters/luacheck.md @@ -51,7 +51,7 @@ On Linux, run `luacheck .` whilst in the root folder of your project. ## 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. Put the following contents in it: @@ -61,13 +61,19 @@ unused_args = false allow_defined_top = true globals = { - "minetest", + "minetest", } read_globals = { - string = {fields = {"split"}}, - table = {fields = {"copy", "getn"}}, - "vector", "default", "ItemStack", + string = {fields = {"split"}}, + table = {fields = {"copy", "getn"}}, + + -- Builtin + "vector", , "ItemStack", + "dump", "DIR_DELIM", "VoxelArea", "Settings", + + -- MTG + "default", "sfinv", "creative", } {% endhighlight %}