-
Notifications
You must be signed in to change notification settings - Fork 27
/
.luacheckrc
34 lines (33 loc) · 1.04 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
self=false
stds.quanta = {
globals = {
--common
"coroutine", "qtable", "qstring", "qmath", "ncmd_cs",
"quanta", "environ", "signal", "service", "logger",
"import", "class", "enum", "mixin", "property", "singleton", "super", "implemented",
"logfeature", "db_property", "classof", "is_class", "is_subclass", "instanceof", "conv_class", "class_review",
"codec", "stdfs", "luabus", "luakit", "json", "protobuf", "timer", "aoi", "log", "worker", "http", "bson",
"detour", "lmdb", "unqlite", "sqlite", "ssl", "xml", "zip", "yaml"
}
}
std = "max+quanta"
max_cyclomatic_complexity = 13
max_code_line_length = 160
max_comment_line_length = 160
exclude_files = {
"extend/lmake/share.lua",
"server/robot/accord/page/*"
}
include_files = {
"script/*.lua",
"server/*.lua",
"script/*/*.lua",
"server/*/*.lua",
"script/*/*/*.lua",
"server/*/*/*.lua",
"script/*/*/*/*.lua",
"server/*/*/*/*.lua",
"extend/lmake/*.lua",
"tools/*/*.lua",
}
ignore = {"212", "213", "512"}