projects
/
gitmo/Perl-Critic-Dynamic-Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
91827b0
)
Throw an error by default for violates_metaclass
Shawn M Moore [Tue, 28 Apr 2009 09:25:36 +0000 (
05:25
-0400)]
lib/Perl/Critic/Policy/DynamicMoose.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Perl/Critic/Policy/DynamicMoose.pm
b/lib/Perl/Critic/Policy/DynamicMoose.pm
index
888ff73
..
303e249
100644
(file)
--- a/
lib/Perl/Critic/Policy/DynamicMoose.pm
+++ b/
lib/Perl/Critic/Policy/DynamicMoose.pm
@@
-58,6
+58,8
@@
sub violates_dynamic {
return @violations;
}
+sub violates_metaclass { die "Your policy (" . blessed($_[0]) . ") needs to implement violates_metaclass" }
+
sub _compile_document {
my $self = shift;
my $doc = $self->document;