You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cheers. It's probably not a good default - lots of library authors are likely still supporting Ruby versions without keyword arguments - but it'd be great for application code.
Rails has made the following form of method signature quite popular, and we have lots of instances in our own code:
I'd like a cop to force these methods to be defined with optional keyword args instead:
The second form is nicely self documenting and avoids a small amount of hash fetch code inside the method.
The text was updated successfully, but these errors were encountered: