Login
Added idea about refactoring F<perlcritic> to the TODO list.
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Mon, 24 Nov 2008 04:52:17 +0000 (04:52 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Mon, 24 Nov 2008 04:52:17 +0000 (04:52 +0000)
TODO.pod

index 995017d..f57d8d9 100644 (file)
--- a/TODO.pod
+++ b/TODO.pod
@@ -441,6 +441,18 @@ See https://rt.cpan.org/Ticket/Display.html?id=38074.
 
 =over
 
+=item * Refactor guts of F<perlcritic> into L<Perl::Critic::CLI>
+
+So the F<perlcritic> script would basically just say...
+
+  use Perl::Critic::CLI;
+  exit Perl::Critic::CLI->run(@ARGV);
+
+This would make the stuff that is currently inside F<perlcritic>
+easier to test.  Also would open the door for developers to
+subclass and extend F<perlcritic>, if they had some reason
+to do so.  Also, just cuz it feels like the right thing todo.
+
 =item * Create constants for the PPI location array elements.
 
 =item * Some means of detecting "runnaway" C<##no critic>