mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
configure luacheck to better undersant LV code (#998)
This commit is contained in:
parent
ddb627d004
commit
dd5de4217d
1 changed files with 38 additions and 0 deletions
38
.luacheckrc
Normal file
38
.luacheckrc
Normal file
|
@ -0,0 +1,38 @@
|
|||
-- vim: ft=lua tw=80
|
||||
|
||||
stds.nvim = {
|
||||
globals = {
|
||||
"O",
|
||||
vim = { fields = { "g" } },
|
||||
"CONFIG_PATH",
|
||||
"CACHE_PATH",
|
||||
"DATA_PATH",
|
||||
"TERMINAL",
|
||||
"USER",
|
||||
"C",
|
||||
"Config",
|
||||
"WORKSPACE_PATH",
|
||||
"JAVA_LS_EXECUTABLE",
|
||||
"MUtils",
|
||||
os = {fields = {"capture"}}
|
||||
},
|
||||
read_globals = {
|
||||
"jit",
|
||||
"os",
|
||||
"vim",
|
||||
-- vim = { fields = { "cmd", "api", "fn", "o" } },
|
||||
},
|
||||
}
|
||||
std = "lua51+nvim"
|
||||
|
||||
|
||||
-- Don't report unused self arguments of methods.
|
||||
self = false
|
||||
|
||||
-- Rerun tests only if their modification time changed.
|
||||
cache = true
|
||||
|
||||
ignore = {
|
||||
"631", -- max_line_length
|
||||
"212/_.*", -- unused argument, for vars with "_" prefix
|
||||
}
|
Loading…
Reference in a new issue