-
Notifications
You must be signed in to change notification settings - Fork 2
/
.luacheckrc
47 lines (43 loc) · 1.58 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
-- configuration for `luacheck`
-- see: https://luacheck.readthedocs.io/en/stable/index.html
-- see: https://github.com/lunarmodules/luacheck
globals = {
-- variables
"signctx", "admtoken",
"lt", "slotopolhost", "cid", "email", "secret", "name", "jobtime", "speed", "gameset",
-- functions
"getbitnum", "makebitnum", "shuffle", "kenospots",
"servinfo", "memusage", "gamelist",
"signis", "signup", "admsignup", "signin", "refresh",
"gamejoin", "gamepart", "gameinfo", "gamertpget",
"slotbetget", "slotbetset", "slotselget", "slotselset",
"slotspin", "slotdoubleup", "slotcollect",
"kenobetget", "kenobetset", "kenoselget", "kenoselset",
"kenoselgetslice", "kenoselsetslice", "kenospin",
"propget", "propwalletget", "propwalletadd", "propaccessget", "propaccessset", "proprtpget", "proprtpset",
}
read_globals = {
-- modules
"path", "atom",
-- variables
"quit",
"buildvers", "buildtime", "bindir", "scrdir", "tmpdir",
-- functions
"log", "checkfile", "bin2hex", "hex2bin", "milli2time", "time2milli", "sec2dur",
"after", "tick", "sleep", "thread",
}
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
}
}