Open elfring opened 3 years ago
If I understand this correctly, you're proposing a codemod that replaces foo = foo + bar
style assignments with foo += bar
? That's totally doable with LibCST and if you want to write a PR I'm happy to review
Some programming languages support operators with a special property:
Thus corresponding change possibilities can occasionally be reconsidered, can't they? :thinking:
:eyes: Some source code analysis tools can help to find opportunities for improving software components. :thought_balloon: I propose to increase the usage of augmented assignment statements accordingly.
Would you like to integrate anything from a transformation result which can be generated by a command like the following? (:point_right: Please check also for questionable change suggestions because of an evolving search pattern.)
How do you think about to improve nine source code places? :thinking:
:crystal_ball: How would a corresponding transformation (a “codemod”) be achieved by the means of the software “LibCST”?