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

Reduce ABC complexity #7450

Merged
merged 2 commits into from Oct 23, 2019
Merged

Reduce ABC complexity #7450

merged 2 commits into from Oct 23, 2019

Conversation

buehmann
Copy link
Contributor

@buehmann buehmann commented Oct 21, 2019

I picked a few of the Metrics/AbcSize offenses from the todo list and reduced the complexity of the methods.

return if autocorrect_notice =~ regex

raise Warning, "AutocorrectNotice '#{autocorrect_notice}' must " \
"match Notice /#{notice}/"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A case for #6420

@bbatsov
Copy link
Collaborator

bbatsov commented Oct 21, 2019

The changes look good to me.

@buehmann
Copy link
Contributor Author

The failing specs seem to be due to a JRuby bug: jruby/jruby#5935

@bbatsov
Copy link
Collaborator

bbatsov commented Oct 23, 2019

Thanks!

@Drenmi Drenmi mentioned this pull request Oct 23, 2019
8 tasks
@buehmann buehmann deleted the abc-size branch October 25, 2019 11:13
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.

None yet

2 participants