projects
/
gitmo/Perl-Critic-Dynamic-Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
90762b5
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Perl/Critic/Policy/Dynamic/Moose.pm
b/lib/Perl/Critic/Policy/Dynamic/Moose.pm
index
2e9dcf1
..
a50cebe
100644
(file)
--- a/
lib/Perl/Critic/Policy/Dynamic/Moose.pm
+++ b/
lib/Perl/Critic/Policy/Dynamic/Moose.pm
@@
-8,6
+8,7
@@
has document => (
isa => 'PPI::Document',
);
+sub applies_to { 'PPI::Document' }
sub applies_to_metaclass { 'Class::MOP::Class' }
around violation => sub {