-
Notifications
You must be signed in to change notification settings - Fork 6
Allow running in strict mode #64
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestin-latest-dockerIncluded with latest docker images, might not yet be available elsewhereIncluded with latest docker images, might not yet be available elsewhere
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestin-latest-dockerIncluded with latest docker images, might not yet be available elsewhereIncluded with latest docker images, might not yet be available elsewhere
Projects
Status
In progress
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,deprecatedto throw error for type conversions and deprecated calls.strict = allto throw error on anything not considered accurate or completely valid.Also link to #5