From 5bd5f0169929bb200521cd11cf5306c9f35b2237 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 5 Jun 2012 19:59:40 +0200 Subject: [PATCH] Add notes about oneliners helpful for code deduplication --- TODO | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TODO b/TODO index b667152..df97666 100644 --- a/TODO +++ b/TODO @@ -169,6 +169,12 @@ Bugs to fix and features to add for 5.0 step would be to have just one file for similar stuff with a few if-then-elses in there. + Common oneliners for code deduplication in the hooks/ directory: + + $ find -L . -not -xtype l -not -type d -not -path '*/common/*' | sort -t / -k3 + $ fdupes -r1 . | sort -t / -k3 + $ find . -type f | sim_text -ipTt 50 | tac | column -t + * Use Perl::Critic Stuff from Steve's TODO list / Generic TODOs