.luacheckrc 600 B

12345678910111213141516171819202122232425262728
  1. -- vim: ft=lua tw=80
  2. stds.nvim = {
  3. read_globals = { "jit" }
  4. }
  5. std = "lua51+nvim"
  6. -- Ignore W211 (unused variable) with preload files.
  7. files["**/preload.lua"] = {ignore = { "211" }}
  8. -- Allow vim module to modify itself, but only here.
  9. files["src/nvim/lua/vim.lua"] = {ignore = { "122/vim" }}
  10. -- Don't report unused self arguments of methods.
  11. self = false
  12. -- Rerun tests only if their modification time changed.
  13. cache = true
  14. ignore = {
  15. "631", -- max_line_length
  16. "212/_.*", -- unused argument, for vars with "_" prefix
  17. }
  18. -- Global objects defined by the C code
  19. read_globals = {
  20. "vim",
  21. }