From: Shawn M Moore Date: Sun, 26 Apr 2009 00:48:44 +0000 (-0400) Subject: Fix reversed conditional X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=379a5f59d0ffe85944b599b889222bd5e3b60009;p=gitmo%2FPerl-Critic-Dynamic-Moose.git Fix reversed conditional --- diff --git a/lib/Perl/Critic/Policy/Dynamic/Moose/ProhibitPublicBuilders.pm b/lib/Perl/Critic/Policy/Dynamic/Moose/ProhibitPublicBuilders.pm index 657e3fc..34d5e8f 100644 --- a/lib/Perl/Critic/Policy/Dynamic/Moose/ProhibitPublicBuilders.pm +++ b/lib/Perl/Critic/Policy/Dynamic/Moose/ProhibitPublicBuilders.pm @@ -17,7 +17,7 @@ sub violates_metaclass { next if !$attribute->has_builder; - if ($attribute->builder =~ /^_/) { + if ($attribute->builder !~ /^_/) { push @violations, $self->violation($DESC, $EXPL); } }