Go to file
Lars Mueller f4c1259a52 A strictness mod is born 2022-06-27 19:38:12 +02:00
.luacheckrc A strictness mod is born 2022-06-27 19:38:12 +02:00
License.txt A strictness mod is born 2022-06-27 19:38:12 +02:00
Readme.md A strictness mod is born 2022-06-27 19:38:12 +02:00
init.lua A strictness mod is born 2022-06-27 19:38:12 +02:00
lua.lua A strictness mod is born 2022-06-27 19:38:12 +02:00
minetest.lua A strictness mod is born 2022-06-27 19:38:12 +02:00
mod.conf A strictness mod is born 2022-06-27 19:38:12 +02:00
settingtypes.txt A strictness mod is born 2022-06-27 19:38:12 +02:00

Readme.md

Strictest

Runtime Strictness for Minetest Mods

Strictest consists of two components:

  • Lua strictness: Will disallow string indexing and string - number coercion.
  • Minetest strictness: Disallows usage of deprecated APIs & using entity-only or player-only methods on the wrong type of object.

Particularly useful when writing new mods that don't target older Minetest versions.

Configuration

strictest.action can be set to either error or log:

  • error: Immediately throw an error on strictness violations.
  • log: Merely log the error (including a stacktrace).

Potentially partially redundant with the deprecated_lua_api_handling setting.

License

Written by Lars Müller and licensed under the MIT license.