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
Naming/BinaryOperatorParameterName detected in a method that is not a binary operator
módulos/última_vez.rb:43:31: C: Naming/BinaryOperatorParameterName: When defining the última_vez_supergrupo operator, name its argument other.
def última_vez_supergrupo(msj)
^^^
última_vez_supergrupo is not an operator, just a regular method
# Cuando un grupo cambia a supergrupo
def última_vez_supergrupo(msj)
# Esta función está definida en dankie.rb
cambiar_claves_supergrupo(msj.migrate_from_chat_id,
msj.chat.id,
'último_mensaje:')
end
Expected behavior
Any detection
Actual behavior
A false positive detection
Steps to reproduce the problem
Create a method that its name is última_vez_supergrupo
Naming/BinaryOperatorParameterName detected in a method that is not a binary operator
última_vez_supergrupo is not an operator, just a regular method
Expected behavior
Any detection
Actual behavior
A false positive detection
Steps to reproduce the problem
Create a method that its name is última_vez_supergrupo
RuboCop version
The text was updated successfully, but these errors were encountered: