-
Notifications
You must be signed in to change notification settings - Fork 412
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 Updates #462
Rubocop Updates #462
Conversation
@marlinpierce since you're actively involved with the gem, I'm curious what your thoughts are on predicate method naming. We currently have this default cop disabled: Naming/PredicateName:
Enabled: false If we enable these, we would need to change our method names, for example
Since we're bumping a major version (3.0.0) and expect some backwards incompatibility, do you have an opinion on this? I don't want to make headaches for folks, but we could add the new methods and mark the old ones deprecated for later removal. |
@bobbrodie I have never seen methods I see the issue here, that rubocop is saying methods, Documentation for Active Model show a comment that the Since you are using these self defined methods to emulate the Active Record counterparts, I think this is appropriate and is another place where rubocop may be wrong by restricting a reasonable practice. I say, go ahead and use the method names you have. It makes the code clear and readable, which is the goal. When rubocop defeats that goal instead of supporting it, it is reasonable to make an exception to robocop. If you do rename the methods, I suggest, |
Overview
This PR updates Rubocop to pass, and addresses a number of temporarily disabled rules.
What's Changed