You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
bkuhlmann
changed the title
Fix Style/MethodCallWithArgsParentheses for case statements
Fix Style/MethodCallWithArgsParentheses for case expressions
Dec 9, 2023
…sParentheses`
Fixesrubocop#12524.
This PR fixes a false positive for `Style/MethodCallWithArgsParentheses`
when `EnforcedStyle: omit_parentheses` and parens in `when` clause is used to pass an argument.
…heses`
Fixes#12524.
This PR fixes a false positive for `Style/MethodCallWithArgsParentheses`
when `EnforcedStyle: omit_parentheses` and parens in `when` clause is used to pass an argument.
Expected behavior
Hello. 👋 I would expect the following to not be flagged as an issue:
Actual behavior
Given the above, RuboCop flags the use of parenthesis for
#fetch
but if you remove the parenthesis, you'll end up with aSyntaxError
:Steps to reproduce the problem
You'll need this RuboCop configuration to run against the above code snippet:
RuboCop version
The text was updated successfully, but these errors were encountered: