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

[Enhancement] Enable selected transformers in formatted file #654

Open
gohierf opened this issue Mar 6, 2024 · 0 comments
Open

[Enhancement] Enable selected transformers in formatted file #654

gohierf opened this issue Mar 6, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gohierf
Copy link

gohierf commented Mar 6, 2024

It would be nice to be able to enable a transformer or another from within the file.

For instance, let's say my robotidy configuration files states that SmartSortKeywords transformer is disabled.

Then maybe for some files I actually want to activate it.

I am using VSCode format on save, rather than manually running robotidy now and then, or from the CI.

It would be convenient that I can activate a transformer using a comment, like it is possible for robocop rules.
# robocop: on=rule1

For our example here, something like:

# robotidy: enable=SmartSortKeywords (on is as good as enable as far as I can tell).

Which could be added at the beging of the file, or in the *** Keywords *** section.

@bhirsz bhirsz changed the title [Enhancement] in file enabler [Enhancement] Enable selected transformers in formatted file Mar 7, 2024
@bhirsz bhirsz added the enhancement New feature or request label Mar 11, 2024
@bhirsz bhirsz self-assigned this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants