Open ydakuka opened 1 year ago
I doubt this is better for parameters less than 3, for example. This cop probably needs a minimum count configuration.
The style guide rule indicates the following:
Consider using named placeholders instead of positional placeholders when you have more than 1 placeholder in your query.
The more places where the ?
placeholder is used, the more meaningful naming becomes. So, unless there's significant user feedback, the configuration might be unnecessary.
Reference: https://rails.rubystyle.guide/#named-placeholder
Actual behavior
I have the code:
I will run rubocop and not get any offences:
Rubocop