You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below Code where comparing ${VAR} to 0 is raised as it could be simplified. But when "simplified" will work incorrectly.
I personally use it for cases when I check return code from process ${result.rc}
What command/code did you try to run?
VAR ${VAR} 0
Should Be True ${VAR}==0 Error 1
Should Be True ${VAR} == 0 Error 2
Should Be True ${VAR} Error 3
What is the full error message?
Error 3
What did you expect to happen instead?
I expect to not raise rule violation I0924 for ${VAR}==0
Operating System
N/A
Robocop version
5.8.1
The text was updated successfully, but these errors were encountered:
Its good question, this part should be auto transform :)
Since IF ${connected} == ${False}
and IF ${connected} == ${EMPTY}
will give the same results
as IF not $connected
only against is that using ${VAR} syntax will rise issue IF not ${connected}
will rise error
Invalid IF condition: Evaluating expression 'not ' failed: SyntaxError: invalid syntax (, line 1)
What happened?
Below Code where comparing ${VAR} to 0 is raised as it could be simplified. But when "simplified" will work incorrectly.
I personally use it for cases when I check return code from process ${result.rc}
What command/code did you try to run?
What is the full error message?
Error 3
What did you expect to happen instead?
I expect to not raise rule violation I0924 for ${VAR}==0
Operating System
N/A
Robocop version
5.8.1
The text was updated successfully, but these errors were encountered: