Login
Fixed typo in the code for setting the criticism-fatal option. Damn I hate
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Wed, 9 Jul 2008 00:32:42 +0000 (00:32 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Wed, 9 Jul 2008 00:32:42 +0000 (00:32 +0000)
all this shennanigans with hyphens and underscores.

lib/Perl/Critic/Config.pm

index 5c92b2d..337ddd0 100644 (file)
@@ -98,7 +98,7 @@ sub _init {
         $self->{_only}  = boolean_to_number( dor( $args{-only},  $options_processor->only()  ) );
         $self->{_color} = boolean_to_number( dor( $args{-color}, $options_processor->color() ) );
         $self->{_criticism_fatal} =
-          boolean_to_number(dor( $args{'-criticism_fatal'}, $options_processor->criticism_fatal() ) );
+          boolean_to_number(dor( $args{'-criticism-fatal'}, $options_processor->criticism_fatal() ) );
     }
 
     $self->_validate_and_save_theme($args{-theme}, $errors);