robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1-- vim: ft=lua tw=80 2 3stds.nvim = { 4 read_globals = { "jit" } 5} 6std = "lua51+nvim" 7 8-- Ignore W211 (unused variable) with preload files. 9files["**/preload.lua"] = {ignore = { "211" }} 10-- Allow vim module to modify itself, but only here. 11files["src/nvim/lua/vim.lua"] = {ignore = { "122/vim" }} 12 13-- Don't report unused self arguments of methods. 14self = false 15 16-- Rerun tests only if their modification time changed. 17cache = true 18 19ignore = { 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 29read_globals = { 30 "vim", 31} 32 33globals = { 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 45exclude_files = { 46 'test/functional/fixtures/lua/syntax_error.lua', 47 'runtime/lua/vim/treesitter/_meta.lua', 48 'runtime/lua/vim/_meta/vimfn.gen.lua', 49 'runtime/lua/vim/_meta/api.gen.lua', 50 'runtime/lua/vim/re.lua', 51 'runtime/lua/uv/_meta.lua', 52 'runtime/lua/coxpcall.lua', 53 'src/nvim/eval.lua', 54}