Allow running in strict mode #64
Labels
enhancement
New feature or request
in-latest-docker
Included with latest docker images, might not yet be available elsewhere
Allow setting strict mode in configuration file.
When strict mode is enabled it should throw errors to fail tests immediately if:
ItemStack:get_metadata()
(method is deprecated)InvRef:set_size("main", -1)
(function returns false to indicate error)InvRef:set_size("main", "1")
(string instead of number)InvRef:set_size("main", 1.2)
(floating point truncated)Possibly could also allow types for strict mode, something like:
strict = types,deprecated
to throw error for type conversions and deprecated calls.strict = all
to throw error on anything not considered accurate or completely valid.Also link to #5
The text was updated successfully, but these errors were encountered: