1
0

.luacheckrc 913 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. "VoxelManip",
  25. "profiler",
  26. "Settings",
  27. "check",
  28. "PseudoRandom",
  29. "PcgRandom",
  30. string = {fields = {"split", "trim"}},
  31. table = {fields = {"copy", "getn", "indexof", "insert_all"}},
  32. math = {fields = {"hypot", "round"}},
  33. }
  34. globals = {
  35. "aborted",
  36. "minetest",
  37. "core",
  38. os = { fields = { "tempfolder" } },
  39. "_",
  40. }