-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.luacheckrc
More file actions
41 lines (31 loc) · 851 Bytes
/
.luacheckrc
File metadata and controls
41 lines (31 loc) · 851 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
35
36
37
38
39
40
41
-- Luacheck configuration for ghost.nvim
-- https://luacheck.readthedocs.io/
-- Use LuaJIT (Neovim runtime)
std = "luajit"
-- Define Neovim globals
globals = {
"vim",
}
-- Read-only globals (standard Lua + LuaJIT)
read_globals = {
"jit",
"unpack",
}
-- Ignore generated/vendor directories
exclude_files = {
".opencode/**",
"node_modules/**",
}
-- Maximum line length (match stylua column_width)
max_line_length = 120
-- Maximum cyclomatic complexity
max_cyclomatic_complexity = 15
-- Warnings configuration
-- See: https://luacheck.readthedocs.io/en/stable/warnings.html
-- Allow unused arguments starting with underscore
unused_args = true
unused_secondaries = true
-- Allow self as unused (common in OOP patterns)
self = false
-- Specific file overrides can be added here:
-- files["lua/ghost/test.lua"] = { ignore = { "212" } }