-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
55 lines (51 loc) · 990 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
-- https://luacheck.readthedocs.io/en/stable/warnings.html
-- Enapter Rule Engine API
local enapter_api = {
'inspect',
'runtime_version',
enapter = {
fields = { 'log', 'device', 'register_command_handler' },
},
ucm = {
fields = { 'new' },
},
storage = {
fields = {
'read',
'write',
'remove',
'err_to_str',
'enable_error_mode',
'disable_error_mode',
},
},
modbustcp = {
fields = {
'new',
},
},
modbus = {
fields = {
'read_coils',
'read_discrete_inputs',
'read_holdings',
'read_inputs',
'write_coil',
'write_holding',
'write_multiple_coils',
'write_multiple_holdings',
'err_to_str',
},
},
}
stds.enapter = {
read_globals = enapter_api,
}
std = 'lua53+enapter'
ignore = {
'212/self', -- allow unused `self`
'411/ok',
'411/error',
'411/err', -- allow to re-define some variables
'421/err', -- allow to shadow some variables
}