openkore icon indicating copy to clipboard operation
openkore copied to clipboard

Increase the usage of combined assignment operators

Open elfring opened this issue 3 years ago • 0 comments

:eyes: Some source code analysis tools can help to find opportunities for improving software components. :thought_balloon: I propose to increase the usage of combined operators 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.)

Markus_Elfring@Sonne:…/Projekte/OpenKore/lokal> perl -p -i.orig -0777 -e 's/(?<target>\$\S+)\s*=\s*\k<target>[ \t]*(?<operator>[+%^.x]|-(?!>)|&(?:&|.)?|\|(?:\||.)?|\*\*?|\/\/?|<<|>>|^.)/$+{target} $+{operator}=/gm' $(find -name '*.pl' -o -name '*.pm')

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

elfring avatar Nov 21 '22 20:11 elfring