Add perlcritic test and make code comply
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Runner / File.pm
index a79500cd364cb01c68957790174fff0afc11aa53..386b02c00b178886be8b04d365516205ad2fe10d 100644 (file)
@@ -3,12 +3,13 @@ package Gruntmaster::Daemon::Runner::File;
 use 5.014000;
 use strict;
 use warnings;
 use 5.014000;
 use strict;
 use warnings;
+use re '/s';
 
 use Gruntmaster::Daemon::Constants qw/WA/;
 use File::Slurp qw/slurp/;
 use Log::Log4perl qw/get_logger/;
 
 
 use Gruntmaster::Daemon::Constants qw/WA/;
 use File::Slurp qw/slurp/;
 use Log::Log4perl qw/get_logger/;
 
-our $VERSION = "5999.000_004";
+our $VERSION = '5999.000_004';
 
 ##################################################
 
 
 ##################################################
 
@@ -31,7 +32,7 @@ sub run{
        $out =~ s/\s+$//;
        $ok  =~ s/\s+$//;
 
        $out =~ s/\s+$//;
        $ok  =~ s/\s+$//;
 
-       die [WA, "Wrong answer"] if $out ne $ok;
+       die [WA, 'Wrong answer'] if $out ne $ok; ## no critic (RequireCarping)
        $meta->{tests}[$test - 1] // 0
 }
 
        $meta->{tests}[$test - 1] // 0
 }
 
This page took 0.010727 seconds and 4 git commands to generate.