IndentNestedKeywords

Format indentation inside run keywords variants such as Run Keywords or Run Keyword And Continue On Failure.

IndentNestedKeywords is not included in default transformers, that’s why you need to call it with --transform explicitly:

robotidy --transform IndentNestedKeywords src

Or configure enabled parameter:

robotidy --configure IndentNestedKeywords:enabled=True

Keywords inside run keywords variants are detected and whitespace is formatted to outline them.

*** Test Cases ***
Test
    Run Keyword    Run Keyword If    ${True}    Run keywords   Log    foo    AND    Log    bar    ELSE    Log    baz

It is possible to provide extra indentation for keywords using AND separators by configuring indent_and to True:

robotidy -c IndentNestedKeywords:indent_and=True src
*** Test Cases ***
Test
    Run keywords
    ...    Log    foo
    ...    AND
    ...    Log    bar

Skip formatting settings

To skip formatting run keywords inside settings (such as Suite Setup, [Setup], [Teardown] etc.) set skip_settings to True:

robotidy -c IndentNestedKeywords:skip_settings:True .