Skip to content

Commit 3fec199

Browse files
authored
rename SeparatorNormalizer to NormalizeSeparators (#97)
1 parent a12eb6c commit 3fec199

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- AlignVariablesSection now supports ``up_to_column`` parameter so it is possible to chose how much column are width aligned
99
- AlignVariablesSection and AlignSettingsSection change ``up_to_column`` default value from 0 (meaning all columns) to 2 (only first two columns are width aligned, rest use fixed length) #
1010
- New AlignSettingsSection for aligning ``*** Settings ***`` section into columns [#60](https://github.com/MarketSquare/robotframework-tidy/issues/60)
11-
- New SeparatorNormalizer for normalizing all separators and indents to fixed length (according to global ``--spacecount`` option) [#32](https://github.com/MarketSquare/robotframework-tidy/issues/32)
11+
- New NormalizeSeparators for normalizing all separators and indents to fixed length (according to global ``--spacecount`` option) [#32](https://github.com/MarketSquare/robotframework-tidy/issues/32)
1212
- New RemoveEmptySettings transformer for removing empty settings such like `Suite Setup` or `[Arguments]`. Settings that are overwriting suite settings (like empty `[Tags]` overwriting `Default Tags`) are preserved. See the docs for config options [#78](https://github.com/MarketSquare/robotframework-tidy/issues/78)
1313
- New SmartSortKeywords transformer (disabled by default) for sorting out keywords inside ``*** Keywords ***`` section [#52](https://github.com/MarketSquare/robotframework-tidy/issues/52)
1414
- New MergeAndOrderSections transformer for merging duplicated sections and ordering them (order is configurable) [#70](https://github.com/MarketSquare/robotframework-tidy/issues/70)
@@ -31,7 +31,7 @@
3131
- Fix issue where variable was not left aligned if name was prefixed with space (`` {variable} 4``) [#88](https://github.com/MarketSquare/robotframework-tidy/issues/88)
3232

3333
### Other
34-
- Support for pipes is now removed. All pipes will be converted to spaces by SeparatorNormalizer transformer. It can be restored if people that use pipe syntax request for it
34+
- Support for pipes is now removed. All pipes will be converted to spaces by NormalizeSeparators transformer. It can be restored if people that use pipe syntax request for it
3535
- Files with invalid encoding will now not stop robotidy execution - warning will be printed instead
3636

3737
## 1.1.1

robotidy/transformers/SeparatorNormalizer.py renamed to robotidy/transformers/NormalizeSeparators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from robotidy.decorators import check_start_end_line
99

1010

11-
class SeparatorNormalizer(ModelTransformer):
11+
class NormalizeSeparators(ModelTransformer):
1212
"""
1313
Normalize separators and indents.
1414

robotidy/transformers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
TRANSFORMERS = [
15-
'SeparatorNormalizer',
15+
'NormalizeSeparators',
1616
'DiscardEmptySections',
1717
'MergeAndOrderSections',
1818
'RemoveEmptySettings',

tests/atest/transformers/SeparatorNormalizer/expected/test.robot renamed to tests/atest/transformers/NormalizeSeparators/expected/test.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Another Keyword
3838
Keyword With Tabulators
3939
Keyword
4040
... 2
41-
... ${arg}
41+
... ${arg}

tests/atest/transformers/SeparatorNormalizer/expected/test_8spaces.robot renamed to tests/atest/transformers/NormalizeSeparators/expected/test_8spaces.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Another Keyword
3838
Keyword With Tabulators
3939
Keyword
4040
... 2
41-
... ${arg}
41+
... ${arg}

tests/atest/transformers/SeparatorNormalizer/source/test.robot renamed to tests/atest/transformers/NormalizeSeparators/source/test.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Another Keyword
3838
Keyword With Tabulators
3939
Keyword
4040
... 2
41-
... ${arg}
41+
... ${arg}

tests/atest/transformers/test_transformers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ def test_modes(self, source, work_mode, more_explicit):
564564

565565

566566
@patch('robotidy.app.Robotidy.save_model', new=save_tmp_model)
567-
class TestSeparatorNormalizer:
568-
TRANSFORMER_NAME = 'SeparatorNormalizer'
567+
class TestNormalizeSeparators:
568+
TRANSFORMER_NAME = 'NormalizeSeparators'
569569

570570
def test_normalize_separators(self):
571571
run_tidy_and_compare(self.TRANSFORMER_NAME, sources=['test.robot'])

0 commit comments

Comments
 (0)