compas icon indicating copy to clipboard operation
compas copied to clipboard

Increase the usage of augmented assignment statements

Open elfring opened this issue 2 years ago • 0 comments

Feature Request

: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.

Details

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.)

lokal$ perl -p -i.orig -0777 -e 's/^(?<indentation>\s+)(?<target>\S+)\s*=\s*\k<target>[ \t]*(?<operator>[+\-%&|^@]|\*\*?|\/\/?|<<|>>)/$+{indentation}$+{target} $+{operator}=/gm' $(find ~/Projekte/COMPAS/lokal -name '*.py')

:crystal_ball: How will the development interests evolve further also according to update candidates in 40 lines of this software?

elfring avatar Nov 20 '21 18:11 elfring