AddMissingEnd¶
Add missing END
token to FOR loops and IF statements.
Formatter configuration
AddMissingEnd is included in the default formatters, but it can be also run separately with:
robocop format --select AddMissingEnd
You can also disable AddMissingEnd:
robocop format --configure AddMissingEnd.enabled=False
*** 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
Skip formatting¶
It is possible to use the following arguments to skip formatting of the code:
It is also possible to use disablers (Disablers) but skip
option
makes it easier to skip all instances of given type of the code.