NormalizeComments#

Normalize comments.

Transformer configuration

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

robotidy --transform NormalizeComments src

You can also disable NormalizeComments:

robotidy --configure NormalizeComments:enabled=False src

Normalizes spacing after the beginning of the comment. Fixes missing-space-after-comment rule violations from the Robocop.

*** Settings ***
#linecomment
### header


*** Keywords ***
Keyword
    Step  #comment
*** Settings ***
# linecomment
### header


*** Keywords ***
Keyword
    Step  # comment

Skip formatting#

It is possible to use the following arguments to skip formatting of the code: