AddMissingEnd#

Add missing END token to FOR loops and IF statements.

Transformer configuration

AddMissingEnd is included in the default transformers, but it can be also run separately with:

robotidy --transform AddMissingEnd src

You can also disable AddMissingEnd:

robotidy --configure AddMissingEnd:enabled=False 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

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.