-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.luacheckrc
More file actions
34 lines (28 loc) · 846 Bytes
/
Copy path.luacheckrc
File metadata and controls
34 lines (28 loc) · 846 Bytes
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
-- vim: ft=lua tw=80
stds.nvim = {
globals = {
vim = { fields = { "g", "b", "w", "o", "bo", "wo", "go", "v", "fn", "api", "opt", "loop", "cmd", "ui", "fs", "keymap", "lsp", "diagnostic", "treesitter", "health", "inspect", "schedule", "defer_fn", "notify", "validate", "deprecate" }},
"describe",
"it",
"before_each",
"after_each",
"pending",
"assert",
},
}
std = "lua51+nvim"
-- Ignore W211 (unused variable) for test files
files["test/**/*_spec.lua"].ignore = { "211" }
-- Ignore max cyclomatic complexity warnings (we've already addressed these)
ignore = {
"561", -- max cyclomatic complexity
"631", -- line too long
}
-- Don't report globals from beam modules
read_globals = {
"BeamSearchOperatorPending",
"BeamSearchOperatorWrapper",
"SearchOperatorPending",
"BeamScopeActive",
}
cache = true