We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in?
If ActiveSupport is required, the .in? method should be permitted in a safe-navigation chain:
.in?
foo&.to_sym.in?([:baz, :qux])
Currently this raises the error: Lint/SafeNavigationChain: Do not chain ordinary method call after safe navigation operator.
Lint/SafeNavigationChain: Do not chain ordinary method call after safe navigation operator.
RuboCop version: 0.89.0
The text was updated successfully, but these errors were encountered:
Lint/SafeNavigationChain
[Fix rubocop#8500] Add in? to AllowedMethods for `Lint/SafeNavigati…
1a1e8ef
…onChain` cop Closes rubocop#8500
[Fix #8500] Add in? to AllowedMethods for `Lint/SafeNavigationChain…
636d26a
…` cop Closes #8500
Thank you!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
If ActiveSupport is required, the
.in?
method should be permitted in a safe-navigation chain:Currently this raises the error:
Lint/SafeNavigationChain: Do not chain ordinary method call after safe navigation operator.
RuboCop version: 0.89.0
The text was updated successfully, but these errors were encountered: