I did the test below to try and find a way to run only the transformers I want. Specifically not run the Replace* transformers. So first setup robotidy config file with just one transformer listed.
Robotidy configure file:
[tool.robotidy]
spacecount = 2
transform = [
"AddMissingEnd"
]
Orig robot code:
Foo And Bar
| | FOR | ${index} | IN RANGE | 0 | 2
| | | ${result} | ${error message}= | Run Keyword And Ignore Error | Verify All
| | | Return From Keyword If | '${result}'=='PASS'
| | END
| | FAIL | "SNAFU"
After robotidy transform with config file above:
Foo And Bar
| | FOR | ${index} | IN RANGE | 0 | 2
| | | ${result} | ${error message}= | Run Keyword And Ignore Error | Verify All
| | | Return From Keyword If | '${result}'=='PASS'
| END
| | FAIL | "SNAFU"
The END was not missing to start with. After transformation it just ended up removing the original second pipe.
My rig versions:
Tool | Version
-------------+-------------------
Linux Dist | Ubuntu 20.04.4 LTS
Linux Kernel | 5.15.0-41-generic
Python | 3.8.10
RF | 5.0
RF Selenium | 6.0.0
RF Requests | 0.9.2
Selenium | 4.1.5
Requests | 2.27.1