[Mod] Strictest [strictest]

Post Reply
User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

[Mod] Strictest [strictest]

by LMD » Post

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.

Git repository
Last edited by LMD on Mon Jul 04, 2022 14:43, edited 1 time in total.
My stuff: Projects - Mods - Website

User avatar
sirrobzeroone
Member
Posts: 593
Joined: Mon Jul 16, 2018 07:56
GitHub: sirrobzeroone
Contact:

Re: [Mod] Strictest [__strictest]

by sirrobzeroone » Post

Thanks for this LMD, I'm definitely going to give it a try.

User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Strictest [__strictest]

by LMD » Post

sirrobzeroone wrote:
Tue Jun 28, 2022 21:27
Thanks for this LMD, I'm definitely going to give it a try.
You're welcome. Feel free to suggest some more strictness!
My stuff: Projects - Mods - Website

Post Reply

Who is online

Users browsing this forum: Nicu, Semrush [Bot] and 18 guests