NormalizeSectionHeaderName¶
Normalize section headers names.
Formatter configuration
NormalizeSectionHeaderName is included in the default formatters, but it can be also run separately with:
robocop format --select NormalizeSectionHeaderName
You can also disable NormalizeSectionHeaderName:
robocop format --configure NormalizeSectionHeaderName.enabled=False
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:
robocop format --configure NormalizeSectionHeaderName.uppercase=True
* 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.