Subject: | tabs present in some tests |
I have a version of Test::NoTabs patched for RT#53727 (Tab detection
breaks with malformed POD), and using this version with the "tabs" test
in Moose 0.97 reveals a couple of test files that have tabs in them.
Attached patch removes the tabs and fixes a typo for good measure.
Subject: | Test-NoTabs-0.9-warning.patch |
--- Test-NoTabs-0.9/lib/Test/NoTabs.pm 2009-07-03 09:33:34.000000000 +0100
+++ Test-NoTabs-0.9/lib/Test/NoTabs.pm 2010-02-10 09:55:13.385054303 +0000
@@ -98,7 +98,7 @@
my $file = shift;
return 1 if $file =~ /\.pl$/i;
return 1 if $file =~ /\.t$/;
- open my $fh, $file or return;
+ open (my $fh, $file) or return;
my $first = <$fh>;
return 1 if defined $first && ($first =~ $PERL_PATTERN);
return;