Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformer configuration can contain spaces: Nope #717

Open
rhaladej-cen55759 opened this issue Oct 18, 2024 · 1 comment
Open

Transformer configuration can contain spaces: Nope #717

rhaladej-cen55759 opened this issue Oct 18, 2024 · 1 comment

Comments

@rhaladej-cen55759
Copy link

Hi, documentation states, that Transformer configuration can contain spaces for better readability and specifically mention OrderSettingsSection

[tool.robotidy]
configure = [
    "OrderSettingsSection: group_order = documentation,imports,settings,tags",
    "OrderSettingsSection: imports_order = library, resource, variables"
]

But it leads to error:

Error: OrderSettingsSection: Invalid 'order' parameter value: 'library, resource, variables'. Custom order should be provided in comma separated list with valid group names:
['library', 'resource', 'variables']
@bhirsz
Copy link
Member

bhirsz commented Oct 19, 2024

This may be misleading - the spaces are allowed but around transformer name, parameters name and parameter value. Parameter value itself can't contain spaces. Though I don't see why it can't so I can implement it in a way that will accept the spaces. For selected transformers only, if the parameter value is 'space sensitive' it will not affect it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants