-
Notifications
You must be signed in to change notification settings - Fork 2
/
.luacheckrc
34 lines (30 loc) · 917 Bytes
/
.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
-- configuration for `luacheck`
-- see: https://luacheck.readthedocs.io/en/stable/index.html
-- see: https://github.com/lunarmodules/luacheck
globals = {
-- tables
"wpk",
}
read_globals = {
-- variables
"buildvers", "buildtime", "bindir", "scrdir", "tmpdir",
-- tables
"path",
-- functions
"log", "checkfile", "bin2hex", "hex2bin", "milli2time", "time2milli",
}
std = { -- Lua 5.1 & GopherLua
read_globals = {
-- basic functions
"assert", "collectgarbage", "dofile", "error", "_G", "getfenv",
"getmetatable", "ipairs", "load", "loadfile", "loadstring",
"next", "pairs", "pcall", "print",
"rawequal", "rawget", "rawset", "select", "setfenv", "setmetatable",
"tonumber", "tostring", "type", "unpack", "_VERSION", "xpcall",
"module", "require",
"goto", -- GopherLua
-- basic libraries
"coroutine", "debug", "io", "math", "os", "package", "string", "table",
"channel" -- GopherLua
}
}