The RoboCop linter is issuing a deprecation warning for the following code:
Return From Keyword If "${status}"=="True" "success"
The warning message is:
'Return From Keyword If' is deprecated, use 'IF and RETURN' instead
However, I have already configured RoboCop '.robot.toml' as follows:
[tool.robocop.format]
select = [
...
"ReplaceRunKeywordIf",
...
]
I've observed that the auto-formatting does work for Run Keyword If.
Run Keyword If ${host_status}==${False} Fail HOST PING FAILED!
is correctly reformatted to:
IF ${host_status}==${False} Fail HOST PING FAILED!
However, the same rule (ReplaceRunKeywordIf) does not apply to Return From Keyword If.
Despite this configuration, the auto-formatting does not seem to take effect. Is this a bug or expected behavior?
The RoboCop linter is issuing a deprecation warning for the following code:
Return From Keyword If "${status}"=="True" "success"
The warning message is:
'Return From Keyword If' is deprecated, use 'IF and RETURN' instead
However, I have already configured RoboCop '.robot.toml' as follows:
[tool.robocop.format]
select = [
...
"ReplaceRunKeywordIf",
...
]
I've observed that the auto-formatting does work for Run Keyword If.
Run Keyword If ${host_status}==${False} Fail HOST PING FAILED!
is correctly reformatted to:
IF ${host_status}==${False} Fail HOST PING FAILED!
However, the same rule (ReplaceRunKeywordIf) does not apply to Return From Keyword If.
Despite this configuration, the auto-formatting does not seem to take effect. Is this a bug or expected behavior?