projects
/
gitmo/Perl-Critic-Dynamic-Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
042287b
)
ClassOverridesRole applies only to Moose::Meta::Class
Shawn M Moore [Sun, 3 May 2009 16:52:48 +0000 (12:52 -0400)]
lib/Perl/Critic/Policy/DynamicMoose/ClassOverridesRole.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Perl/Critic/Policy/DynamicMoose/ClassOverridesRole.pm
b/lib/Perl/Critic/Policy/DynamicMoose/ClassOverridesRole.pm
index
361b55f
..
b373f84
100644
(file)
--- a/
lib/Perl/Critic/Policy/DynamicMoose/ClassOverridesRole.pm
+++ b/
lib/Perl/Critic/Policy/DynamicMoose/ClassOverridesRole.pm
@@
-7,6
+7,9
@@
use Perl::Critic::Utils ':severities';
Readonly::Scalar my $EXPL => q{};
sub default_severity { $SEVERITY_MEDIUM }
+# Class::MOP::Class has no roles
+sub applies_to_metaclass { 'Moose::Meta::Class' }
+
sub violates_metaclass {
my $self = shift;
my $meta = shift;