IndentNestedKeywords¶
Format indentation inside run keywords variants such as Run Keywords or Run Keyword And Continue On Failure.
Enabling the formatter
IndentNestedKeywords is not included in default formatters.
You can enable it by using --select and --extend-select options.
Keywords inside run keywords variants are detected and whitespace is formatted to outline them.
Handle AND inside Run Keywords¶
AND argument inside Run Keywords can be handled in different ways.
You can configure it using indent_and:
The following values are available:
indent_and=splitsplitsANDto new line,indent_and=split_and_indentsplitsANDand additionally indents the keywords,indent_and=keep_in_linekeepsANDnext to the previous keyword.
Comments¶
Comments are kept together with the code they refer to. A comment that trails data on a line (for example a
# robocop: fmt: off disabler) stays on the same output line as the closest keyword or argument, instead of being
moved in front of the whole statement:
Comments that occupy their own line are kept as standalone comment lines placed before the formatted statement.
Skip formatting settings¶
To skip formatting run keywords inside settings (such as Suite Setup, [Setup], [Teardown] etc.) set
skip_settings to True: