.luacheckrc 779 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. }
  22. globals = {
  23. "vim.g",
  24. "vim.b",
  25. "vim.w",
  26. "vim.o",
  27. "vim.bo",
  28. "vim.wo",
  29. "vim.go",
  30. "vim.env"
  31. }
  32. exclude_files = {
  33. 'test/functional/fixtures/lua/syntax_error.lua',
  34. }