Skip to content

Commit 47088b1

Browse files
committed
Add some more excluded operators to BinaryOperatorParameterName rule
1 parent 9f9d5fa commit 47088b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ameba/rule/naming/binary_operator_parameter_name.cr

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ module Ameba::Rule::Naming
2525
# ```
2626
# Naming/BinaryOperatorParameterName:
2727
# Enabled: true
28-
# ExcludedOperators: ["[]", "[]?", "[]=", "<<", "=~"]
28+
# ExcludedOperators: ["[]", "[]?", "[]=", "<<", ">>", "=~", "!~"]
2929
# ```
3030
class BinaryOperatorParameterName < Base
3131
properties do
3232
description "Enforces that certain binary operator methods have " \
3333
"their sole parameter named `other`"
34-
excluded_operators %w[[] []? []= << ` =~]
34+
excluded_operators %w[[] []? []= << >> ` =~ !~]
3535
end
3636

3737
MSG = "When defining the `%s` operator, name its argument `other`"

0 commit comments

Comments
 (0)