Skip to content

Commit ad7d911

Browse files
marcandremergify[bot]
authored andcommitted
Improve doc
1 parent 14585a7 commit ad7d911

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ module Metrics
66
module Utils
77
# @api private
88
#
9-
# Helps to calculate code length for the provided node.
9+
# Identifies repetitions `&.` on the same variable:
10+
#
11+
# my_var&.foo
12+
# my_var&.bar # => repeated
13+
# my_var = baz # => reset
14+
# my_var&.qux # => not repeated
1015
module RepeatedCsendDiscount
1116
def reset_repeated_csend
1217
@repeated_csend = {}

0 commit comments

Comments
 (0)