-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.luacheckrc
More file actions
52 lines (45 loc) · 1.21 KB
/
.luacheckrc
File metadata and controls
52 lines (45 loc) · 1.21 KB
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
-- .luacheckrc configuration for mise backend plugins
std = "lua51"
-- Globals defined by the mise/vfox plugin system
globals = {
"PLUGIN",
"RUNTIME", -- Runtime information injected by mise
}
-- Read-only globals from the plugin environment
read_globals = {
-- vfox modules available in backend plugins
"require",
"cmd", -- Command execution module
"http", -- HTTP client module
"json", -- JSON parsing module
"file", -- File operations module
-- Standard Lua globals
"os",
"io",
"table",
"string",
"math",
"error",
"ipairs",
"pairs",
"print",
"tostring",
"tonumber",
"type",
"pcall",
"getmetatable",
"setmetatable",
}
ignore = {
"631", -- line is too long
"212", -- unused argument (ctx, self often unused in simple hooks)
"211", -- unused variable (template examples may have unused vars)
"611", -- line contains only whitespace
"612", -- trailing whitespace in comment
"621", -- trailing whitespace
}
-- Allow trailing whitespace (can be auto-fixed)
allow_defined_top = true
-- Don't warn about unused arguments in hook functions
-- These are part of the plugin API signature
unused_args = false