.luacheckrc 703 B

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