2
0

.luacheckrc 729 B

12345678910111213141516171819202122232425262728293031
  1. unused_args = false
  2. allow_defined_top = true
  3. globals = {
  4. "default"
  5. }
  6. read_globals = {
  7. "DIR_DELIM",
  8. "minetest",
  9. "dump",
  10. "vector",
  11. "VoxelManip", "VoxelArea",
  12. "PseudoRandom", "PcgRandom",
  13. "ItemStack",
  14. "Settings",
  15. "unpack",
  16. -- Silence errors about custom table methods.
  17. table = { fields = { "copy", "indexof" } },
  18. -- Silence warnings about accessing undefined fields of global 'math'
  19. math = { fields = { "sign" } }
  20. }
  21. -- Overwrites minetest.handle_node_drops
  22. files["mods/creative/init.lua"].globals = { "minetest" }
  23. -- Overwrites minetest.calculate_knockback
  24. files["mods/player_api/api.lua"].globals = { "minetest" }
  25. -- Don't report on legacy definitions of globals.
  26. files["mods/default/legacy.lua"].global = false