fix(suppressor): goto not supported in Lua 5.1 #58

Closed
opened 2026-05-25 14:51:11 +02:00 by michael · 0 comments
Owner

Problem

core/suppressor.lua uses goto which was introduced in Lua 5.2:

if not rule_id then goto continue end
...
::continue::

fragjan targets Lua 5.1 and 5.4 (daw-project-standard). This causes a
syntax error on Lua 5.1.

Fix

Replace with an if block:

if rule_id then
  -- existing logic
end

Acceptance criteria

  • suppressor.lua runs without error on Lua 5.1
  • No goto/label constructs remain
## Problem `core/suppressor.lua` uses `goto` which was introduced in Lua 5.2: ```lua if not rule_id then goto continue end ... ::continue:: ``` fragjan targets Lua 5.1 and 5.4 (daw-project-standard). This causes a syntax error on Lua 5.1. ## Fix Replace with an `if` block: ```lua if rule_id then -- existing logic end ``` ## Acceptance criteria - [ ] suppressor.lua runs without error on Lua 5.1 - [ ] No goto/label constructs remain
michael added this to the Basic Version milestone 2026-05-30 16:05:00 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#58
No description provided.