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

Allow RuboCop to run on a Visual Line selection #26

Open
radiantshaw opened this issue Oct 28, 2021 · 0 comments
Open

Allow RuboCop to run on a Visual Line selection #26

radiantshaw opened this issue Oct 28, 2021 · 0 comments

Comments

@radiantshaw
Copy link

When you're using version control like git, you only want RuboCop to run on the parts of the file which were changed. Since there are many version control systems, it would be hard to implement this, so an alternative idea is that the users can visually select the text they want RuboCop to run on, and then either hit :RuboCop or \ru. I tried it currently, and it says something along the lines of the command doesn't accept a range.

I can attempt this change and raise a PR if you want. Let me know how you feel about this feature.

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

1 participant