.luacheckrc (1289B)
1 -- vim: ft=lua tw=80 2 3 stds.nvim = { 4 read_globals = { "jit" } 5 } 6 std = "lua51+nvim" 7 8 -- Ignore W211 (unused variable) with preload files. 9 files["**/preload.lua"] = {ignore = { "211" }} 10 -- Allow vim module to modify itself, but only here. 11 files["src/nvim/lua/vim.lua"] = {ignore = { "122/vim" }} 12 13 -- Don't report unused self arguments of methods. 14 self = false 15 16 -- Rerun tests only if their modification time changed. 17 cache = true 18 19 ignore = { 20 "631", -- max_line_length 21 "212/_.*", -- unused argument, for vars with "_" prefix 22 "214", -- used variable with unused hint ("_" prefix) 23 "121", -- setting read-only global variable 'vim' 24 "122", -- setting read-only field of global variable 'vim' 25 "581", -- negation of a relational operator- operator can be flipped (not for tables) 26 } 27 28 -- Global objects defined by the C code 29 read_globals = { 30 "vim", 31 } 32 33 globals = { 34 "vim.g", 35 "vim.b", 36 "vim.w", 37 "vim.o", 38 "vim.bo", 39 "vim.wo", 40 "vim.go", 41 "vim.env", 42 "_", 43 } 44 45 exclude_files = { 46 'test/_meta.lua', 47 'test/functional/fixtures/lua/syntax_error.lua', 48 'runtime/lua/vim/treesitter/_meta.lua', 49 'runtime/lua/vim/_meta/vimfn.lua', 50 'runtime/lua/vim/_meta/api.lua', 51 'runtime/lua/vim/re.lua', 52 'runtime/lua/uv/_meta.lua', 53 'runtime/lua/coxpcall.lua', 54 'src/nvim/eval.lua', 55 }