.luacheckrc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---*- mode: lua -*-
  2. stds.mineunit = {
  3. read_globals = {
  4. "mineunit", "fixture", "sourcefile",
  5. }
  6. }
  7. std = "lua51"
  8. files["ci/*"] = {std = "+busted+mineunit"}
  9. files[".luacheckrc"] = {std = "min+luacheckrc"}
  10. globals = {"advtrains_doc_integration"}
  11. read_globals = {
  12. "DIR_DELIM", "doc", "ItemStack", "minetest",
  13. "advtrains_attachment_offset_patch", "multi_component_liveries", "techage",
  14. advtrains = {
  15. fields = {
  16. coupler_types = {other_fields = true},
  17. register_wagon = {read_only = false},
  18. wagon_prototypes = {other_fields = true},
  19. }
  20. },
  21. bit = {
  22. fields = {
  23. "tobit", "tohex", "bnot", "band", "bor", "bxor",
  24. "lshift", "rshift", "arshift", "rol", "ror", "bswap",
  25. }
  26. },
  27. advtrains_livery_database = {
  28. fields = {
  29. "add_livery_template", "add_livery_template_overlay", "add_predefined_livery",
  30. "get_livery_design_from_textures", "get_livery_template_names_for_wagon", "get_livery_textures_from_design",
  31. "get_predefined_livery", "get_predefined_livery_names",
  32. "get_wagon_livery_overlay_name", "get_wagon_livery_template", "get_wagon_mod_name",
  33. "register_mod", "register_wagon",
  34. }
  35. },
  36. dlxtrains = {
  37. fields = {
  38. update_livery = {read_only = false},
  39. },
  40. },
  41. table = {
  42. fields = {"copy"},
  43. },
  44. mtt = {
  45. fields = {"join_player", "register"},
  46. }
  47. }
  48. files["ci/*"].globals = read_globals
  49. ignore = {"631",}