-
Notifications
You must be signed in to change notification settings - Fork 213
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
Removes empty initialize methods: Style/RedundantInitialize: Remove unnecessary empty initialize
method.
#602
Comments
This is also troublesome if the empty
Just had this happen on a client project. |
Makes sense 👍. Standard should be skeptical of any cop that runs the risk of screwing up the user's intended behavior, and it's clear there are too many uncovered edge cases for this cop to be acceptable. In the future, it'd be helpful to link to the RuboCop docs and share Standard's current configuration (in this case: Style/RedundantInitialize and Style/RedundantInitialize:
Enabled: true |
Worth noting that this cop is not Safe per rubocop's metadata. I presume that we are less likely to enable cops that are not safe. |
Definitely. It looks like this particular cop wasn't initially marked as unsafe until this same issue was identified. |
Thanks all |
Before:
After:
The text was updated successfully, but these errors were encountered: