Subject: | new 5.014 package { }; syntax breaks many tests |
Date: | Fri, 1 Jul 2011 14:50:44 -0500 |
To: | bugs-perl-critic [...] rt.cpan.org |
From: | Caleb Cushing <xenoterracide [...] gmail.com> |
attached is a repo where the tests demonstrate the issues
# Failed test 'Test::Perl::Critic for "blib/lib/critictest.pm"'
# at /home/ccushing/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Perl/Critic.pm
line 110.
#
# Perl::Critic found these violations in "blib/lib/critictest.pm":
# Module does not end with "1;" at line 1, column 1. Must end with a
recognizable true value. (Severity: 4)
# Code before strictures are enabled at line 4, column 2. See page
429 of PBP. (Severity: 5)
# Code before warnings are enabled at line 4, column 2. See page 431
of PBP. (Severity: 4)
# Looks like you failed 1 test of 1.
t/author-critic.t ............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
this should work.
package critictest {
use 5.014;
use warnings;
BEGIN {
# VERSION
}
1;
}
--
Caleb Cushing
http://xenoterracide.com
Message body not shown because it is not plain text.