HF RL Explorer

Bug: no-loop-func rule false positives for IIFEs and duplicate variable names in error message

Bug: no-loop-func rule false positives for IIFEs and duplicate variable names in error message: a task in LegoFlow-SWE (Harbor dataset). The no-loop-func rule incorrectly flags Immediately Invoked Function Expressions (IIFEs) inside loops as unsafe, even though they execute immediately and do not…

The task

The `no-loop-func` rule incorrectly flags Immediately Invoked Function Expressions (IIFEs) inside loops as unsafe, even though they execute immediately and do not suffer from closure issues with loop variables. Additionally, when reporting an error, the message duplicates variable names multiple times.

Part of Lego-X/LegoFlow-SWE.