Closed sircfenner closed 3 months ago
Current behavior, when running darklua process with remove_unused_variable as the only rule:
darklua process
remove_unused_variable
repeat local x = true until x
generates:
repeat until x
Expected behavior is that variables defined in the loop body are considered "used" if referenced in the condition. Tested on darklua version 0.13.0.
Thank you for the report, I'll add this test case once I fix it. I really messed up that rule apparently 😅
Related to #182
Current behavior, when running
darklua process
withremove_unused_variable
as the only rule:generates:
Expected behavior is that variables defined in the loop body are considered "used" if referenced in the condition. Tested on darklua version 0.13.0.