From 5afc7b4d1e9b9608cddb3568e3124966e6734529 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 10 Jul 2018 00:30:48 +0100 Subject: [PATCH] LuaCheck: Fix syntax error, add editor section --- en/chapters/luacheck.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/en/chapters/luacheck.md b/en/chapters/luacheck.md index ce00e33..d0defd2 100644 --- a/en/chapters/luacheck.md +++ b/en/chapters/luacheck.md @@ -69,7 +69,7 @@ read_globals = { table = {fields = {"copy", "getn"}}, -- Builtin - "vector", , "ItemStack", + "vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", -- MTG @@ -92,6 +92,15 @@ a look at the list below. * **mutating read-only global variable 'foobar'** - Move `foobar` from `read_globals` to `globals`. +## Using with editor + +It is highly recommended that you find an install a plugin for your editor of choice +to show you errors without running a command. Most editors will likely have a plugin +available. + +* **Atom** - `linter-luacheck` +* **Sublime** - `SublimeLinter-luacheck` + ## Checking commits with Travis If your project is public and is on Github, you can use TravisCI - a free service