From 47088b10ca97aff96c9580ff50b17cd4e945a175 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Fri, 24 Nov 2023 21:13:04 +0100 Subject: [PATCH] Add some more excluded operators to `BinaryOperatorParameterName` rule --- src/ameba/rule/naming/binary_operator_parameter_name.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ameba/rule/naming/binary_operator_parameter_name.cr b/src/ameba/rule/naming/binary_operator_parameter_name.cr index eb77cefc6..16cc1ed6b 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`"