@@ -18,6 +18,7 @@ To see what types are possible to skip, see ``Skip formatting`` sections in each
1818
1919Skip documentation
2020-------------------
21+
2122Flag that disables formatting of the documentation. Example usage::
2223
2324 robotidy -c NormalizeSeparators:skip_documentation=True src
@@ -28,6 +29,7 @@ It is possible to use global flag to skip formatting for every transformer that
2829
2930Configuration file
3031~~~~~~~~~~~~~~~~~~~~
32+
3133Both options are configurable using configuration file (:ref: `config-file `).
3234
3335.. code-block :: toml
@@ -42,6 +44,7 @@ Both options are configurable using configuration file (:ref:`config-file`).
4244
4345Skip return values
4446-------------------
47+
4548Flag that disables formatting of the return values (assignments). Example usage::
4649
4750 robotidy -c AlignKeywordsSection:skip_return_values=True src
@@ -52,6 +55,7 @@ It is possible to use global flag to skip formatting for every transformer that
5255
5356Configuration file
5457~~~~~~~~~~~~~~~~~~~~
58+
5559Both options are configurable using configuration file (:ref: `config-file `).
5660
5761.. code-block :: toml
@@ -66,6 +70,7 @@ Both options are configurable using configuration file (:ref:`config-file`).
6670
6771Skip keyword call
6872------------------
73+
6974Comma-separated list of keyword call names that should not be formatted. Names will be
7075normalized before search (spaces and underscores removed, lowercase).
7176
@@ -81,6 +86,7 @@ It is possible to use global option to skip formatting for every transformer tha
8186
8287Configuration file
8388~~~~~~~~~~~~~~~~~~~~
89+
8490Both options are configurable using configuration file (:ref: `config-file `).
8591
8692.. code-block :: toml
@@ -98,6 +104,7 @@ Both options are configurable using configuration file (:ref:`config-file`).
98104
99105Skip keyword call pattern
100106-------------------------
107+
101108Comma-separated list of keyword call name patterns that should not be formatted. The keyword names are not normalized.
102109If you're using different case for the same keyword ("Keyword" and "keyword") or using both spaces and underscores, it is
103110recommended to use proper regex flags to match it properly.
@@ -117,6 +124,7 @@ It is possible to use global option to skip formatting for every transformer tha
117124
118125Configuration file
119126~~~~~~~~~~~~~~~~~~~~
127+
120128Both options are configurable using configuration file (:ref: `config-file `).
121129
122130.. code-block :: toml
@@ -134,6 +142,7 @@ Both options are configurable using configuration file (:ref:`config-file`).
134142
135143Skip settings
136144-------------------
145+
137146Flag that disables formatting of the settings. Example usage::
138147
139148 robotidy -c AlignTestCasesSection:skip_settings=True src
@@ -157,6 +166,7 @@ Following types are possible to skip:
157166
158167Configuration file
159168~~~~~~~~~~~~~~~~~~~~
169+
160170Option is configurable using configuration file (:ref: `config-file `).
161171
162172Skip formatting of all settings:
@@ -185,6 +195,7 @@ Skip formatting of selected settings:
185195
186196Skip comments and block comments
187197---------------------------------
198+
188199Flag that disables formatting of the comments and block comments. Example usage::
189200
190201 robotidy -c NormalizeSeparators:skip_comments=True src
@@ -219,3 +230,30 @@ Both options are configurable using configuration file (:ref:`config-file`).
219230 configure = [
220231 "NormalizeSeparators : skip_block_comments = False"
221232 ]
233+
234+ .. _skip sections :
235+
236+ Skip sections
237+ ---------------
238+
239+ Option that disables formatting of the selected settings. Example usage::
240+
241+ robotidy -c NormalizeSeparators:skip_sections=variables src
242+
243+ It is possible to use global option to skip formatting for every transformer that supports it::
244+
245+ robotidy --skip-sections=keywords,testcases src
246+
247+ Section names can be provided using comma separated list: settings,variables,testcases,keywords,comments.
248+
249+ Configuration file
250+ ~~~~~~~~~~~~~~~~~~~~
251+ Both options are configurable using configuration file (:ref: `config-file `).
252+
253+ .. code-block :: toml
254+
255+ [tool.robotidy]
256+ skip-sections = "comments"
257+ configure = [
258+ "NormalizeSeparators : skip_sections = tasks,keywords"
259+ ]
0 commit comments