.luacheckrc 884 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. unused_args = false
  2. allow_defined_top = true
  3. max_string_line_length = false
  4. max_line_length = false
  5. ignore = {
  6. "131", -- Unused global variable
  7. "211", -- Unused local variable
  8. "231", -- Local variable never accessed
  9. "311", -- Value assigned to a local variable is unused
  10. "412", -- Redefining an argument
  11. "421", -- Shadowing a local variable
  12. "431", -- Shadowing an upvalue
  13. "432", -- Shadowing an upvalue argument
  14. "611", -- Line contains only whitespace
  15. }
  16. read_globals = {
  17. "ItemStack",
  18. "INIT",
  19. "DIR_DELIM",
  20. "dump", "dump2",
  21. "fgettext", "fgettext_ne",
  22. "vector",
  23. "VoxelArea",
  24. "profiler",
  25. "Settings",
  26. "check",
  27. "PseudoRandom",
  28. string = {fields = {"split", "trim"}},
  29. table = {fields = {"copy", "getn", "indexof", "insert_all"}},
  30. math = {fields = {"hypot", "round"}},
  31. }
  32. globals = {
  33. "aborted",
  34. "minetest",
  35. "core",
  36. os = { fields = { "tempfolder" } },
  37. "_",
  38. }