robotframework-tidy
robotframework-tidy copied to clipboard
RenameVariables does not work on variable in EXCEPT arguments, nor WHILE limit
I recently decided to enable RenameVariables transformer and noticed it missed variables in the EXPECT arguments.
BEFORE
AFTER
Code to reproduce
My Keyword
[Arguments] ${expected error}
TRY
No Operation
EXCEPT ${expected error}
No Operation
END
It does not seem to update the variables used in WHILE's limit option either.
BEFORE
My Keyword
[Arguments] ${my condition} ${my limit}
WHILE ${my condition} limit=${my limit}
No Operation
END
AFTER
My Keyword
[Arguments] ${my_condition} ${my_limit}
WHILE ${my_condition} limit=${my limit}
No Operation
END
Fixed - will be part of Robocop 6.0.