remove_assertions


Added in 0.12.0

Parameters


NameTypeDescriptionDefault
preserve_arguments_side_effects

boolean

Defines how darklua handle arguments passed to the function. If true, darklua will inspect each argument and preserve any potential side effects. When false, darklua will not perform any verification and simply erase any arguments passed.

true

This rule removes all function calls to assert.

Examples


assert(condition, 'condition is incorrect!')
InputOutput
assert(condition, 'condition is incorrect!')
do end