-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
60 lines (51 loc) · 1.15 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
-- vim: ft=lua
-- luacheck: ignore
---@diagnostic disable: lowercase-global
-- Rerun tests only if their modification time changed.
cache = true
-- Emit warning codes in error output.
codes = true
-- List of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
ignore = {
-- "121", -- setting read-only global variable 'vim'
"122", -- Indirectly setting a readonly global
"212/_.*", -- unused argument, for vars with "_" prefix
-- "411", -- Redefining a local variable.
-- "412", -- Redefining an argument.
-- "422", -- Shadowing an argument
"631", -- max_line_length
}
include_files = {
"after/**/*.lua",
"filetype.lua",
"init.lua",
"lua/**/*.lua",
"plugin/*.lua",
}
-- max_cyclomatic_complexity = 2
---@diagnostic disable-next-line: undefined-global
globals = {
"vim.g",
"vim.b",
"vim.w",
"vim.o",
"vim.bo",
"vim.wo",
"vim.go",
"vim.env",
}
read_globals = {
"LazyVim",
"Snacks",
"colors",
"defaults",
"ev",
"hl",
"keys",
"notify",
"package",
"vim",
}
-- Don't report unused self arguments of methods.
self = false
std = "luajit"