AddMissingEndΒΆ
Add missing END token to FOR loops and IF statements.
AddMissingEnd is included in the default transformers but it can be also run separately with:
robotidy --transform AddMissingEnd src
*** Test Cases ***
Test
FOR ${x} IN foo bar
Log ${x}
IF ${condition}
Log ${x}
IF ${condition}
Log ${y}
Keyword
*** Test Cases ***
Test
FOR ${x} IN foo bar
Log ${x}
END
IF ${condition}
Log ${x}
IF ${condition}
Log ${y}
END
END
Keyword
AddMissingEnd transformer supports global formatting params: --startline
and --endline
.