From 419f3ae9fd57fc4e03146a830f7ed780ace83937 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 19 Nov 2016 18:12:39 -0500 Subject: Bug 1307478 - Elasticsearch Indexer / Bulk Indexer --- t/002goodperl.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 't') diff --git a/t/002goodperl.t b/t/002goodperl.t index 7b2e74acc..d770b7b4f 100644 --- a/t/002goodperl.t +++ b/t/002goodperl.t @@ -80,6 +80,7 @@ foreach my $file (@testitems) { my $found_use_perl = 0; my $found_use_strict = 0; my $found_use_warnings = 0; + my $found_modern_perl = 0; $file =~ s/\s.*$//; # nuke everything after the first space (#comment) next if (!$file); # skip null entries @@ -88,9 +89,14 @@ foreach my $file (@testitems) { next; } while (my $file_line = ) { + $found_modern_perl = 1 if $file_line =~ m/^use\s*(?:Moo|Role::Tiny)/; $found_use_perl = 1 if $file_line =~ m/^\s*use 5.10.1/; $found_use_strict = 1 if $file_line =~ m/^\s*use strict/; $found_use_warnings = 1 if $file_line =~ m/^\s*use warnings/; + if ($found_modern_perl) { + $found_use_strict = 1; + $found_use_warnings = 1; + } last if ($found_use_perl && $found_use_strict && $found_use_warnings); } close (FILE); -- cgit v1.2.3-24-g4f1b