Open sobolevn opened 4 years ago
Should this be closed for the same reasons as #1084 ?
Yes, thank you!
Or should it? Let's leave it open for now. I will have to make a small research.
@sobolevn Should this rule be implemented? If not, could you recommend us an issue to work on? We have looked at most of them but aren't up to date on what should be implemented or not.
Rule request
Thesis
One can write this code:
But, it is an anti-pattern. Instead one should write:
Related: https://docs.quantifiedcode.com/python-anti-patterns/correctness/not_using_setdefault_to_initialize_a_dictionary.html
This is a refactoring rule.