-
-
Notifications
You must be signed in to change notification settings - Fork 263
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 to check for duplicate scopes #427
Comments
I made a PR for this #607 |
Hi @natematykiewicz I want to ask you if you think the following use case can be included as part of the DuplicateScope cop: We accidentally declared the scope with the same name twice, but with different scoping. This has caused some confusion as to why the scope behaves differently. The case is different to what you are covering. I want to write a cop for such case, but am wondering if making it part of your cop makes sense. Thanks! |
I accidentally wrote the following code:
It'd be great to detect that the same scope is defined twice, because this most likely is always an error.
Describe the solution you'd like
Register an offense when multiple scopes have identical bodies.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: