Make perlcritic happy
[gruntmaster-data.git] / lib / Gruntmaster / App / Command.pm
index b1be168dc43c829b5f666d5e70ecf6373b6a7280..94695ac560cbac194f07e4c24edb12dd46fc4578 100644 (file)
@@ -3,6 +3,7 @@ package Gruntmaster::App::Command;
 use 5.014000;
 use strict;
 use warnings;
+use re '/s';
 
 our $VERSION = '5999.000_004';
 
@@ -13,9 +14,9 @@ sub description {
        my ($self) = @_;
        my ($file) = (ref $self) =~ s,::,/,gr;
        my $usage;
-       open my $fh, '>', \$usage;
+       open my $fh, '>', \$usage; ## no critic (RequireCheckedOpen)
        pod2usage(-input => $INC{"$file.pm"}, -output => $fh, -exitval => 'NOEXIT', -verbose => 99, -sections => [qw/SYNOPSIS DESCRIPTION/]);
-       close $fh;
+       close $fh; ## no critic (RequireCheckedClose)
        $usage =~ s/Usage:/Usage examples:/;
        1 while chomp $usage;
        $usage
This page took 0.01033 seconds and 4 git commands to generate.