.luacheckrc 672 B

1234567891011121314151617181920212223242526272829303132
  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. exclude_files = {
  23. 'test/functional/fixtures/lua/syntax_error.lua',
  24. }