/ .luacheckrc
.luacheckrc
1 -- vim: ft=lua tw=80 2 3 std = 'luajit' 4 cache = true 5 include_files = { 6 'nvim/*.lua', 'nvim/*/*.lua', 'nvim/*/*/*.lua', 'nvim/*/*/*/*.lua', 7 'wezterm/*.lua', 'wezterm/*/*.lua', 'wezterm/*/*/*.lua', 8 '*.luacheckrc', 9 } 10 exclude_files = { 11 'src/luacheck/vendor', 12 'hammerspoon/', -- host globals (Keymaps, hs, etc.); enable with per-file read_globals when needed 13 'yazi/', -- host globals (ya, ui, th, Linemode) 14 } 15 globals = { 'vim', 'wezterm', 'LazyVim', 'YaziConfig' } 16 max_line_length = 150 17 max_comment_line_length = 200 18 files['wezterm/extensions/backdrops.lua'] = { ignore = { '212' } } 19 files['nvim/lua/lsp/servers/json.lua'] = { ignore = { '631' } } -- long lines in description strings 20 21 -- Rerun tests only if their modification time changed 22 cache = true 23 24 -- Don't report unused self arguments of methods 25 self = false 26 27 -- ignore = { 28 -- '631', -- max_line_length 29 -- '212/_.*', -- unused argument, for vars with "_" prefix 30 -- }