-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred while Style/TrailingCommaInArguments cop was inspecting... #6755
Comments
Hi, @Domon! What is your configured |
Hi @Drenmi 👋 I can reproduce the error with The following is my minimal
|
Thanks! I was able to reproduce the issue on |
…g when a safe method call is chained on the offending method This cop would error out on code like: ``` foo.bar( baz: 1, )&.fetch(:qux) ``` This was happening because the cop wasn't taking `csend` (safe navigation) node types into consideration.
…ts-cop [Fix #6755] Prevent Style/TrailingCommaInArgument from breaking when a safe method call is chained on the offending method
Expected behavior
RuboCop reports offenses (if any) without any unknown error.
Actual behavior
RuboCop reports no offenses but ends with an unknown error.
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: