NormalizeSectionHeaderName#

Normalize section headers names.

Transformer configuration

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

robotidy --transform NormalizeSectionHeaderName src

You can also disable NormalizeSectionHeaderName:

robotidy --configure NormalizeSectionHeaderName:enabled=False src

Robot Framework is quite flexible with the section header naming. Following lines are equal:

*setting
*** SETTINGS
*** SettingS ***

This transformer normalize naming to follow *** SectionName *** format (with plurar variant):

*** Settings ***
*** Keywords ***
*** Test Cases ***
*** Variables ***
*** Comments ***

Optional data after section header (for example data driven column names) is preserved. It is possible to upper case section header names by passing uppercase=True parameter:

robotidy --configure NormalizeSectionHeaderName:uppercase=True src
* setting *
*** SETTINGS ***

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.