Avoid applying to every element in the tree, we just apply to the doc
Shawn M Moore [Sun, 26 Apr 2009 00:41:24 +0000 (20:41 -0400)]
lib/Perl/Critic/Policy/Dynamic/Moose.pm

index 2e9dcf1..a50cebe 100644 (file)
@@ -8,6 +8,7 @@ has document => (
     isa => 'PPI::Document',
 );
 
+sub applies_to { 'PPI::Document' }
 sub applies_to_metaclass { 'Class::MOP::Class' }
 
 around violation => sub {