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

[Fix #7971] Fix --disable-uncorrectable not updating uncorrected code #8054

Merged
merged 2 commits into from May 31, 2020

Conversation

rrosenblum
Copy link
Contributor

This fixes #7971.

I still need to decide how to handle the failing metrics in cop.rb. I know @marcandre mentioned that #7868 will make this easier/change the way this would work. I haven't had a chance to look over that PR.

There are a few more things that I still want to look into with --disable-uncorrectable. I'm curious how well it works on lines that already contain a different rubocop:todo or rubocop:disable comment.

@marcandre
Copy link
Contributor

I wasn't qute correct. My PR helps in detecting non-corrections, but you're right that they should be then disabled. I'm 👍 to merge (but you need to resolve/disable the "metrics/" offenses 🙄)

@marcandre marcandre self-requested a review May 28, 2020 23:47
@bbatsov bbatsov merged commit f34cc0e into rubocop:master May 31, 2020
@bbatsov
Copy link
Collaborator

bbatsov commented May 31, 2020

Thanks!

@rrosenblum rrosenblum deleted the 7971_disable_uncorrected branch June 2, 2020 13:16
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

Successfully merging this pull request may close these issues.

Lint/UnusedMethodArgument does not correct or mark keyword args as "todo"
3 participants