diff --git a/src/ameba/rule/naming/binary_operator_parameter_name.cr b/src/ameba/rule/naming/binary_operator_parameter_name.cr index eb77cefc..16cc1ed6 100644 --- a/src/ameba/rule/naming/binary_operator_parameter_name.cr +++ b/src/ameba/rule/naming/binary_operator_parameter_name.cr @@ -25,13 +25,13 @@ module Ameba::Rule::Naming # ``` # Naming/BinaryOperatorParameterName: # Enabled: true - # ExcludedOperators: ["[]", "[]?", "[]=", "<<", "=~"] + # ExcludedOperators: ["[]", "[]?", "[]=", "<<", ">>", "=~", "!~"] # ``` class BinaryOperatorParameterName < Base properties do description "Enforces that certain binary operator methods have " \ "their sole parameter named `other`" - excluded_operators %w[[] []? []= << ` =~] + excluded_operators %w[[] []? []= << >> ` =~ !~] end MSG = "When defining the `%s` operator, name its argument `other`"