LuaCheck: Fix syntax error, add editor section

This commit is contained in:
rubenwardy 2018-07-10 00:30:48 +01:00 committed by GitHub
parent 45b1ce06cb
commit 5afc7b4d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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