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

Rubocop todo fixes #2004

Merged
merged 9 commits into from
Mar 5, 2020
Merged

Rubocop todo fixes #2004

merged 9 commits into from
Mar 5, 2020

Conversation

ericproulx
Copy link
Contributor

Hello,

Here are some fixes based on rubocop todo:

  • Style/HashTransformValues
  • Style/RescueStandardError
  • Lint/RedundantRequireStatement
  • Performance/RegexpMatch
  • Style/MutableConstant
  • Lint/DisjunctiveAssignmentInConstructor

@grape-bot
Copy link

grape-bot commented Mar 4, 2020

1 Warning
⚠️ There’re library changes, but not tests. That’s OK as long as you’re refactoring existing code.

Generated by 🚫 danger

@@ -76,7 +76,7 @@ def coerce_value(val)
converter.call(val)

# Some custom types might fail, so it should be treated as an invalid value
rescue
rescue StandardError
Copy link
Member

Choose a reason for hiding this comment

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

This is actually a behavior change. It's the right one though. Let's add it to UPGRADING?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Separate PR ?

Copy link
Member

Choose a reason for hiding this comment

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

Probably best. Remove it from this one?

@dblock dblock merged commit cd81338 into ruby-grape:master Mar 5, 2020
@dblock
Copy link
Member

dblock commented Mar 5, 2020

👍

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.

3 participants