robotframework-robocop
robotframework-robocop copied to clipboard
[Rule] Not all If branches define variable
If new variable is set in If, it should be set in all branches:
IF ${True}
${var} Set Variable value
ELSE
${var} Set Variable other value
END
Only potential issue is global variable with default value that can be overwriten if one condition is true. But it is still better to be explicit and set it in every branch.