.luacheckrc 698 B

123456789101112131415161718192021222324252627282930313233343536
  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. }
  25. exclude_files = {
  26. 'test/functional/fixtures/lua/syntax_error.lua',
  27. }