forked from viisauksena/gluon-ssid-changer
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.luacheckrc
106 lines (97 loc) · 1.5 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
codes = true
std = "min"
self = false
new_read_globals = {
"getfenv",
"setfenv",
"unpack",
}
include_files = {
"**/*.lua",
"package/**/files/lib/gluon/ebtables/*",
"package/**/luasrc/**/*",
"targets/*",
}
exclude_files = {
"**/*.mk",
}
files["scripts/check_site.lua"] = {
allow_defined = true,
module = true,
}
files["**/check_site.lua"] = {
new_read_globals = {
"alternatives",
"extend",
"in_domain",
"in_site",
"need",
"need_alphanumeric_key",
"need_array",
"need_array_of",
"need_boolean",
"need_chanlist",
"need_domain_name",
"need_number",
"need_one_of",
"need_string",
"need_string_array",
"need_string_array_match",
"need_string_match",
"need_table",
"need_value",
"obsolete",
"table_keys",
"this_domain",
},
}
files["**/files/lib/gluon/ebtables/*"] = {
new_read_globals = {
"chain",
"rule",
},
max_line_length = false,
}
files["**/luasrc/lib/gluon/config-mode/*"] = {
globals = {
"DynamicList",
"Flag",
"Form",
"i18n",
"ListValue",
"renderer.render",
"renderer.render_string",
"Section",
"TextValue",
"_translate",
"translate",
"translatef",
"Value",
},
}
files["**/luasrc/lib/gluon/**/controller/*"] = {
new_read_globals = {
"_",
"alias",
"call",
"entry",
"model",
"node",
"template",
},
}
files["targets/*"] = {
new_read_globals = {
"config",
"defaults",
"device",
"env",
"envtrue",
"exec_capture_raw",
"factory_image",
"no_opkg",
"packages",
"sysupgrade_image",
"try_config",
},
}