-
Notifications
You must be signed in to change notification settings - Fork 892
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
[refurb
] implement repeated_global (FURB154) lint
#11187
base: main
Are you sure you want to change the base?
Conversation
43653f6
to
884e7c9
Compare
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
FURB154 | 15 | 15 | 0 | 0 | 0 |
Since globals and nonlocals are rare, could we try instead running this rule on every In other words... instead of iterating over every body / statement, can we instead run this for each |
884e7c9
to
333b7f4
Compare
@charliermarsh done. |
Thanks @alex-700. Blocked on me, will review shortly. |
Summary
Implement repeated_global (FURB154) lint.
See:
Test Plan
cargo test