Open niallmcgee opened 1 month ago
It is most likely outcome of the logic where we try to find variables defined only for given scope (we don't always want to check if given variable is used if it's defined in specific place). I will look into it how it can be mitigated
What happened?
robocop doesn't report
unused-variable
errors if the variable is set within aIF
block. It seems to catch those in other control blocks (egFOR
) OK.What command/code did you try to run?
What is the full error message?
What did you expect to happen instead?
I expected
${U2}
to be reported as an unused variable as well as${U1}
and${U3}
Operating System
Linux
Robocop version
5.2.0