GuidoBartoli / sherloq

An open-source digital image forensic toolset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Increase the usage of augmented assignment statements

elfring opened this issue ยท comments

๐Ÿ‘€ Some source code analysis tools can help to find opportunities for improving software components.
๐Ÿ’ญ 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.)

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

๐Ÿ’ญ Can you follow the rationale of the Python enhancement proposal 203 (from 2000-07-13)?

Sorry, but I do not understand your point on this and I do not see how it can be applied to Sherloq.

๐Ÿ‘€ Would you like to take another look at available information to achieve a better understanding?

โ€ฆ and I do not see how it can be applied to Sherloq.

๐Ÿ”ฎ Would you dare to apply a variant of the shown Perl command example on another development repository?