-
Notifications
You must be signed in to change notification settings - Fork 35
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
Rule: pointless-reassignment
#878
Conversation
} | ||
``` | ||
|
||
This rule does not consider that a violation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule does not consider that a violation. | |
This rule does not consider such examples violations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what if I a had a rule like foo_bar_whizzz_bang_bar_foo_baz_v1_foo
, and then reassigned it for readability, would this be good to ignore too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say the issue then would be you naming a rule or var like that in the first place :D
some m1 in sorted_group | ||
some m2 in sorted_group | ||
some loc in package_locations[m1][m2] | ||
e := loc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my handiwork!
Also: - fix the one violation of this rule found in our code :P - add metadata annotations to a bunch of rules Fixes #867 Signed-off-by: Anders Eknert <[email protected]>
7a2d95b
to
07e4ad7
Compare
Also: - fix the one violation of this rule found in our code :P - add metadata annotations to a bunch of rules Fixes StyraInc#867 Signed-off-by: Anders Eknert <[email protected]>
Also:
Fixes #867