.luacheckrc 898 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "PcgRandom",
  29. string = {fields = {"split", "trim"}},
  30. table = {fields = {"copy", "getn", "indexof", "insert_all"}},
  31. math = {fields = {"hypot", "round"}},
  32. }
  33. globals = {
  34. "aborted",
  35. "minetest",
  36. "core",
  37. os = { fields = { "tempfolder" } },
  38. "_",
  39. }