-
Notifications
You must be signed in to change notification settings - Fork 1
/
.luacheckrc
62 lines (57 loc) · 1.22 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
61
-- vim: ft=lua syntax=lua softtabstop=3 tabstop=3 shiftwidth=3 fenc=utf-8 expandtab
-- code: language=lua insertSpaces=true tabSize=3
-- codes = true
-- globals = {"_","vim"}
stds.nvim = {
globals = {
"rvim",
"packer_plugins",
vim = { fields = { "g" } },
"TERMINAL",
"USER",
"C",
"Config",
"Api",
"Cmd",
"Fn",
"Keymap",
"Execute",
"G",
"_GlobalCallbacks",
"WhichKey",
"MUtils",
"fterm_cmd",
os = { fields = { "capture" } },
},
read_globals = {
"bit",
"jit",
"os",
"vim",
"packer_plugins",
"join_paths",
"get_runtime_dir",
"get_config_dir",
"get_cache_dir",
"get_user_dir",
"use",
"unpack",
vim = { fields = { "cmd", "api", "fn", "o", "wo", "bo" } },
},
}
std = "lua52+nvim"
-- Don't report unused self arguments of methods.
self = false
-- Rerun tests only if their modification time changed.
cache = true
-- https://luacheck.readthedocs.io/en/stable/warnings.html
-- "631", -- max_line_length
ignore = {
"212/_.*", -- unused argument, for vars with "_" prefix
"111/_.*", -- unused argument, for functions with "_" prefix
"631/.*vim.*",
}
exclude_files = {
"plugin/packer_compiled.lua",
"tmp/*",
}