I think setter methods should never be reported by this cop. The user shouldn't have to add them to the IgnoredMethods configuration option.
Expected behavior
$ echo 'x.y = 1' | rubocop --only Style/MethodCallWithArgsParentheses --stdin stdin.rb
Inspecting 1 file
.
1 file inspected, no offenses detected
Actual behavior
$ echo 'x.y = 1' | rubocop --only Style/MethodCallWithArgsParentheses --stdin stdin.rb
Inspecting 1 file
C
Offenses:
stdin.rb:1:3: C: Use parentheses for method calls with arguments.
x.y = 1
^
1 file inspected, 1 offense detected
Steps to reproduce the problem
Run the above command.
RuboCop version
Current master. The problem does not occur on 0.47.1.
I think setter methods should never be reported by this cop. The user shouldn't have to add them to the
IgnoredMethodsconfiguration option.Expected behavior
Actual behavior
Steps to reproduce the problem
Run the above command.
RuboCop version
Current
master. The problem does not occur on0.47.1.