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
Revert "Extended consider-using-tuple check to cover 'in' comparisons (#4768)" #4832
Conversation
@Pierre-Sassoulas I would like to revert the commit before starting to work on a replacement. The alternative would be to keep them in the |
Pull Request Test Coverage Report for Build 1124969554
💛 - Coveralls |
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.
Couldn't we replace consider-using-tuple
to use-sets-for-membership
for every example in this MR without reverting first ? Thiw way we would not have to think about it because the initial MR was already well thought. I guess you know better how you want to do it so I'm approving anyway :)
The alternative would be to keep them in the code_style extension.
We could keep them separated in their own checker so the decision is easier to make. I think if we want to be able to do #3512 comfortably we'll have to separate more anyway, what do you think ?
I tried that initially, but it became such a mess that I didn't really wanted to work on it. Starting from scratch is the better and cleaner approach IMO. I'll use most of it for the new check though.
I thought the additional effort wouldn't be worth it. We can still separate individual checks from the rest by creating methods for them. What it comes down to IMO is if we want to enable these by default or have them in an extension.
If you do have another idea, especially a name for the new (?) checker, I would be open to that too. |
Finding name is hard 😄 |
Performance benefit and good coding practice. |
Description
Revert changes made in #4768 after discussion #4776.