-
Notifications
You must be signed in to change notification settings - Fork 1
/
.luacheckrc
26 lines (23 loc) · 910 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
-- Rerun tests only if their modification time changed.
cache = true
codes = true
exclude_files = {
"syntax_examples",
}
-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
ignore = {
"631", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off.
"212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off.
"411", -- Redefining a local variable.
"412", -- Redefining an argument.
"422", -- Shadowing an argument
"122", -- Indirectly setting a readonly global
"121", -- setting read-only global variable
"111", -- setting read-only global variable
"112", -- setting read-only global variable
}
-- Global objects defined by the C code
read_globals = {
"vim",
"BlackAtomCoreConfig",
}