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
Cop idea: Referencing named capture with a number #7754
Comments
should we detect also following example? :
|
I think the cop should detect the problem ideally, but I guess it is difficult with the current RuboCop implementation.Because RuboCop's analysis for local variable assigments is not enougth. |
cop idea issue: rubocop/rubocop#7754
cop idea issue: rubocop/rubocop#7754
cop idea issue: rubocop/rubocop#7754
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
Is your feature request related to a problem? Please describe.
Regexp's named capture can be referenced with a number, but referencing with a name is preferred.
Describe the solution you'd like
Add a cop to detect the problem.
Describe alternatives you've considered
Nothing
Additional context
We will be able to the cop with regexp_parser gem. ref: #7746
The text was updated successfully, but these errors were encountered: