Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 24005
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: SHERLOCK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.22
Fixed in: 0.23



Subject: test 95 in t/13_bundled_policies fails in 0.22
with : make test TEST_VERBOSE=1 with Perlcritic 0.22, I get a failure. The relevant text for the failure is: ok 93 - Listing format matches expected pattern ok 94 - Listing format matches expected pattern ok t/13_bundled_policies........................1..1 # Failed test 'successfully loaded policies matches MANIFEST' # at t/13_bundled_policies.t line 19. # Structures begin differing at: not ok 1 - successfully loaded policies matches MANIFEST # $got->[26] = 'Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks' # $expected->[26] = 'Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls' # Looks like you failed 1 test of 1. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay This is on Mac OSX, 10.4.8, with built in Perl: whitbread 1013 % uname -a Darwin whitbread.stanford.edu 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386 whitbread 1012 % perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level uname='darwin b01.apple.com 8.0 darwin kernel version 8.3.0: mon oct 3 20:04:04 pdt 2005; root:xnu-792.6.22.obj~2release_ppc power macintosh powerpc ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=-Dman3ext=3pm - Duseithreads -Duseshrplib' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict- aliasing -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lc perllibs=-ldl -lm -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: 23953 - fix for File::Path::rmtree CAN-2004-0452 security issue 33990 - fix for setuid perl security issues SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under darwin Compiled at Oct 16 2006 22:54:34 %ENV: PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin" @INC: /sw/lib/perl5/5.8.6/darwin-thread-multi-2level /sw/lib/perl5/5.8.6 /sw/lib/perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 . Thanks, Gavin
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Tue, 19 Dec 2006 14:05:51 -0600
To: bug-Perl-Critic [...] rt.cpan.org
From: Chris Dolan <chris [...] chrisdolan.net>
Hi Gavin, Could you please run "make clean" and try again for me? It looks like you have some old code in blib from a previous install (an older version of Perl::Critic), but I'm not 100% sure. And could you report what tool you are using? CPAN.pm? CPANPLUS? Install by hand? Chris P.S. Another fink perl user! Yay! On Dec 19, 2006, at 1:33 PM, via RT wrote: Show quoted text
> > Tue Dec 19 14:33:43 2006: Request 24005 was acted upon. > Transaction: Ticket created by SHERLOCK > Queue: Perl-Critic > Subject: test 95 in t/13_bundled_policies fails in 0.22 > Broken in: 0.22 > Severity: Important > Owner: Nobody > Requestors: SHERLOCK@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > > > > with : make test TEST_VERBOSE=1 > > with Perlcritic 0.22, I get a failure. The relevant text for the > failure is: > > ok 93 - Listing format matches expected pattern > ok 94 - Listing format matches expected pattern > ok > t/13_bundled_policies........................1..1 > > # Failed test 'successfully loaded policies matches MANIFEST' > # at t/13_bundled_policies.t line 19. > # Structures begin differing at: > not ok 1 - successfully loaded policies matches MANIFEST > # $got->[26] = > 'Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks' > # $expected->[26] = > 'Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls' > # Looks like you failed 1 test of 1. > dubious > Test returned status 1 (wstat 256, 0x100) > DIED. FAILED test 1 > Failed 1/1 tests, 0.00% okay > > This is on Mac OSX, 10.4.8, with built in Perl: > > whitbread 1013 % uname -a > Darwin whitbread.stanford.edu 8.8.1 Darwin Kernel Version 8.8.1: > Mon Sep 25 19:42:00 PDT > 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386 > > whitbread 1012 % perl -V > Summary of my perl5 (revision 5 version 8 subversion 6) configuration: > Platform: > osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level > uname='darwin b01.apple.com 8.0 darwin kernel version 8.3.0: > mon oct 3 20:04:04 pdt > 2005; root:xnu-792.6.22.obj~2release_ppc power macintosh powerpc ' > config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe - > Dldflags=-Dman3ext=3pm - > Duseithreads -Duseshrplib' > hint=recommended, useposix=true, d_sigaction=define > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp- > precomp -fno-strict- > aliasing -I/usr/local/include', > optimize='-O3', > cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN - > no-cpp-precomp > -fno-strict-aliasing -I/usr/local/include' > ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build > 5363)', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=define, longlongsize=8, d_longdbl=define, > longdblsize=16 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, > Off_t='off_t', lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/ > local/lib' > libpth=/usr/local/lib /usr/lib > libs=-ldbm -ldl -lm -lc > perllibs=-ldl -lm -lc > libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, > libperl=libperl.dylib > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' > cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/ > usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES > PERL_IMPLICIT_CONTEXT > Locally applied patches: > 23953 - fix for File::Path::rmtree CAN-2004-0452 security > issue > 33990 - fix for setuid perl security issues > SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 > Built under darwin > Compiled at Oct 16 2006 22:54:34 > %ENV: > PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin" > @INC: > /sw/lib/perl5/5.8.6/darwin-thread-multi-2level > /sw/lib/perl5/5.8.6 > /sw/lib/perl5 > /sw/lib/perl5/darwin > /System/Library/Perl/5.8.6/darwin-thread-multi-2level > /System/Library/Perl/5.8.6 > /Library/Perl/5.8.6/darwin-thread-multi-2level > /Library/Perl/5.8.6 > /Library/Perl > /Network/Library/Perl/5.8.6/darwin-thread-multi-2level > /Network/Library/Perl/5.8.6 > /Network/Library/Perl > /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level > /System/Library/Perl/Extras/5.8.6 > /Library/Perl/5.8.1 > . > > Thanks, > Gavin > >
-- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Tue, 19 Dec 2006 14:48:10 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Gavin Sherlock <sherlock [...] genome.stanford.edu>
Hi Chris, I did a make clean, but got the same result. I'm doing an install by hand, Cheers, Gavin On Dec 19, 2006, at 12:06 PM, Chris Dolan via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > > > Hi Gavin, > > Could you please run "make clean" and try again for me? It looks > like you have some old code in blib from a previous install (an older > version of Perl::Critic), but I'm not 100% sure. > > And could you report what tool you are using? CPAN.pm? CPANPLUS? > Install by hand? > > Chris > > P.S. Another fink perl user! Yay! > > On Dec 19, 2006, at 1:33 PM, via RT wrote: >
>> >> Tue Dec 19 14:33:43 2006: Request 24005 was acted upon. >> Transaction: Ticket created by SHERLOCK >> Queue: Perl-Critic >> Subject: test 95 in t/13_bundled_policies fails in 0.22 >> Broken in: 0.22 >> Severity: Important >> Owner: Nobody >> Requestors: SHERLOCK@cpan.org >> Status: new >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > >> >> >> with : make test TEST_VERBOSE=1 >> >> with Perlcritic 0.22, I get a failure. The relevant text for the >> failure is: >> >> ok 93 - Listing format matches expected pattern >> ok 94 - Listing format matches expected pattern >> ok >> t/13_bundled_policies........................1..1 >> >> # Failed test 'successfully loaded policies matches MANIFEST' >> # at t/13_bundled_policies.t line 19. >> # Structures begin differing at: >> not ok 1 - successfully loaded policies matches MANIFEST >> # $got->[26] = >> 'Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks' >> # $expected->[26] = >> 'Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls' >> # Looks like you failed 1 test of 1. >> dubious >> Test returned status 1 (wstat 256, 0x100) >> DIED. FAILED test 1 >> Failed 1/1 tests, 0.00% okay >> >> This is on Mac OSX, 10.4.8, with built in Perl: >> >> whitbread 1013 % uname -a >> Darwin whitbread.stanford.edu 8.8.1 Darwin Kernel Version 8.8.1: >> Mon Sep 25 19:42:00 PDT >> 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386 >> >> whitbread 1012 % perl -V >> Summary of my perl5 (revision 5 version 8 subversion 6) >> configuration: >> Platform: >> osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level >> uname='darwin b01.apple.com 8.0 darwin kernel version 8.3.0: >> mon oct 3 20:04:04 pdt >> 2005; root:xnu-792.6.22.obj~2release_ppc power macintosh powerpc ' >> config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe - >> Dldflags=-Dman3ext=3pm - >> Duseithreads -Duseshrplib' >> hint=recommended, useposix=true, d_sigaction=define >> usethreads=define use5005threads=undef useithreads=define >> usemultiplicity=define >> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef >> use64bitint=undef use64bitall=undef uselongdouble=undef >> usemymalloc=n, bincompat5005=undef >> Compiler: >> cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp- >> precomp -fno-strict- >> aliasing -I/usr/local/include', >> optimize='-O3', >> cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN - >> no-cpp-precomp >> -fno-strict-aliasing -I/usr/local/include' >> ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build >> 5363)', gccosandvers='' >> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 >> d_longlong=define, longlongsize=8, d_longdbl=define, >> longdblsize=16 >> ivtype='long', ivsize=4, nvtype='double', nvsize=8, >> Off_t='off_t', lseeksize=8 >> alignbytes=8, prototype=define >> Linker and Libraries: >> ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/ >> local/lib' >> libpth=/usr/local/lib /usr/lib >> libs=-ldbm -ldl -lm -lc >> perllibs=-ldl -lm -lc >> libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, >> libperl=libperl.dylib >> gnulibc_version='' >> Dynamic Linking: >> dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' >> cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/ >> usr/local/lib' >> >> >> Characteristics of this binary (from libperl): >> Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES >> PERL_IMPLICIT_CONTEXT >> Locally applied patches: >> 23953 - fix for File::Path::rmtree CAN-2004-0452 security >> issue >> 33990 - fix for setuid perl security issues >> SPRINTF0 - fixes for sprintf formatting issues - >> CVE-2005-3962 >> Built under darwin >> Compiled at Oct 16 2006 22:54:34 >> %ENV: >> PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin" >> @INC: >> /sw/lib/perl5/5.8.6/darwin-thread-multi-2level >> /sw/lib/perl5/5.8.6 >> /sw/lib/perl5 >> /sw/lib/perl5/darwin >> /System/Library/Perl/5.8.6/darwin-thread-multi-2level >> /System/Library/Perl/5.8.6 >> /Library/Perl/5.8.6/darwin-thread-multi-2level >> /Library/Perl/5.8.6 >> /Library/Perl >> /Network/Library/Perl/5.8.6/darwin-thread-multi-2level >> /Network/Library/Perl/5.8.6 >> /Network/Library/Perl >> /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level >> /System/Library/Perl/Extras/5.8.6 >> /Library/Perl/5.8.1 >> . >> >> Thanks, >> Gavin >> >>
> > -- > Chris Dolan, Software Developer, http://www.chrisdolan.net/ > Public key: http://www.chrisdolan.net/public.key > vCard: http://www.chrisdolan.net/ChrisDolan.vcf > > >
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Wed, 20 Dec 2006 11:24:44 -0600
To: bug-Perl-Critic [...] rt.cpan.org
From: Chris Dolan <chris [...] chrisdolan.net>
On Dec 19, 2006, at 4:50 PM, sherlock@genome.stanford.edu via RT wrote: Show quoted text
> Queue: Perl-Critic > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > > > Hi Chris, > > I did a make clean, but got the same result. > > I'm doing an install by hand, > > Cheers, > Gavin
Gavin, Very odd. I can't seem to reproduce this from either SVN or CPAN. I tried both Build.PL and Makfile.PL. Grasping at straws now: Do you have any third party Perl::Critic policies installed, like Perl::Critic::More or others? Can you run the following and share the results? perl -le'use ExtUtils::Manifest;print ExtUtils::Manifest->VERSION' Do any of the other Perl::Critic developers have any other ideas? Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Wed, 20 Dec 2006 10:02:45 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Gavin Sherlock <sherlock [...] genome.stanford.edu>
Hi Chris, whitbread 1001 % perl -le'use ExtUtils::Manifest;print ExtUtils::Manifest->VERSION' 1.42 I don't have Perl::Critic::More installed, and I have PPI 1.118. I'll update ExtUtils::Manifest to see if it makes a difference, Cheers, Gavin On Dec 20, 2006, at 9:25 AM, Chris Dolan via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > > > On Dec 19, 2006, at 4:50 PM, sherlock@genome.stanford.edu via RT > wrote: >
>> Queue: Perl-Critic >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > >> >> Hi Chris, >> >> I did a make clean, but got the same result. >> >> I'm doing an install by hand, >> >> Cheers, >> Gavin
> > > Gavin, > > Very odd. I can't seem to reproduce this from either SVN or CPAN. I > tried both Build.PL and Makfile.PL. Grasping at straws now: Do you > have any third party Perl::Critic policies installed, like > Perl::Critic::More or others? Can you run the following and share > the results? > perl -le'use ExtUtils::Manifest;print ExtUtils::Manifest->VERSION' > > Do any of the other Perl::Critic developers have any other ideas? > > Chris > > > -- > Chris Dolan, Software Developer, http://www.chrisdolan.net/ > Public key: http://www.chrisdolan.net/public.key > vCard: http://www.chrisdolan.net/ChrisDolan.vcf > > >
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Wed, 20 Dec 2006 11:54:03 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Gavin Sherlock <sherlock [...] genome.stanford.edu>
Hi, Updating to 1.49 didn't make any difference - the test still failed. Let me know if you want me to edit the 13_bundled_policies file to get additional information, Cheers, Gavin On Dec 20, 2006, at 10:02 AM, Gavin Sherlock wrote: Show quoted text
> Hi Chris, > > whitbread 1001 % perl -le'use ExtUtils::Manifest;print > ExtUtils::Manifest->VERSION' > 1.42 > > I don't have Perl::Critic::More installed, and I have PPI 1.118. > > I'll update ExtUtils::Manifest to see if it makes a difference, > > Cheers, > Gavin > > On Dec 20, 2006, at 9:25 AM, Chris Dolan via RT wrote: >
>> >> <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > >> >> On Dec 19, 2006, at 4:50 PM, sherlock@genome.stanford.edu via RT >> wrote: >>
>>> Queue: Perl-Critic >>> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > >>> >>> Hi Chris, >>> >>> I did a make clean, but got the same result. >>> >>> I'm doing an install by hand, >>> >>> Cheers, >>> Gavin
>> >> >> Gavin, >> >> Very odd. I can't seem to reproduce this from either SVN or CPAN. I >> tried both Build.PL and Makfile.PL. Grasping at straws now: Do you >> have any third party Perl::Critic policies installed, like >> Perl::Critic::More or others? Can you run the following and share >> the results? >> perl -le'use ExtUtils::Manifest;print ExtUtils::Manifest->VERSION' >> >> Do any of the other Perl::Critic developers have any other ideas? >> >> Chris >> >> >> -- >> Chris Dolan, Software Developer, http://www.chrisdolan.net/ >> Public key: http://www.chrisdolan.net/public.key >> vCard: http://www.chrisdolan.net/ChrisDolan.vcf >> >> >>
>
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Wed, 20 Dec 2006 12:13:53 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Gavin Sherlock <sherlock [...] genome.stanford.edu>
Hi, I modified the 13_bundled_policies file to include: print join("\n", @found_policies), "\n\n"; print join("\n", bundled_policy_names()), "\n\n"; and then compared the two lists. The list from bundled_policy_names () contains four entries that are not in @found_policies, namely: Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls Perl::Critic::Policy::Documentation::RequirePodSections Perl::Critic::Policy::Miscellanea::RequireRcsKeywords Perl::Critic::Policy::Modules::RequireVersionVar Hope this is useful, Cheers, Gavin On Dec 20, 2006, at 11:54 AM, sherlock@genome.stanford.edu via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > > > Hi, > > Updating to 1.49 didn't make any difference - the test still failed. > Let me know if you want me to edit the 13_bundled_policies file to > get additional information, > > Cheers, > Gavin > > On Dec 20, 2006, at 10:02 AM, Gavin Sherlock wrote: >
>> Hi Chris, >> >> whitbread 1001 % perl -le'use ExtUtils::Manifest;print >> ExtUtils::Manifest->VERSION' >> 1.42 >> >> I don't have Perl::Critic::More installed, and I have PPI 1.118. >> >> I'll update ExtUtils::Manifest to see if it makes a difference, >> >> Cheers, >> Gavin >> >> On Dec 20, 2006, at 9:25 AM, Chris Dolan via RT wrote: >>
>>> >>> <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > >>> >>> On Dec 19, 2006, at 4:50 PM, sherlock@genome.stanford.edu via RT >>> wrote: >>>
>>>> Queue: Perl-Critic >>>> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > >>>> >>>> Hi Chris, >>>> >>>> I did a make clean, but got the same result. >>>> >>>> I'm doing an install by hand, >>>> >>>> Cheers, >>>> Gavin
>>> >>> >>> Gavin, >>> >>> Very odd. I can't seem to reproduce this from either SVN or >>> CPAN. I >>> tried both Build.PL and Makfile.PL. Grasping at straws now: Do you >>> have any third party Perl::Critic policies installed, like >>> Perl::Critic::More or others? Can you run the following and share >>> the results? >>> perl -le'use ExtUtils::Manifest;print ExtUtils::Manifest-
>>> >VERSION'
>>> >>> Do any of the other Perl::Critic developers have any other ideas? >>> >>> Chris >>> >>> >>> -- >>> Chris Dolan, Software Developer, http://www.chrisdolan.net/ >>> Public key: http://www.chrisdolan.net/public.key >>> vCard: http://www.chrisdolan.net/ChrisDolan.vcf >>> >>> >>>
>>
>
I think I found the cause of this problem. Did you have any policies disabled in your ~/.perlcriticrc file at the time you were building this? -Jeff
Subject: Re: [rt.cpan.org #24005] test 95 in t/13_bundled_policies fails in 0.22
Date: Wed, 17 Jan 2007 17:55:39 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Gavin Sherlock <sherlock [...] genome.stanford.edu>
I don't think I have disabled any, but the contents of the file are pasted here, in case that helps: # Put Perl Critic customizations here. See details in documentation for # Configuration in the Perl::Critic docs. [Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr] # Use 4-argument substr instead of writing substr($foo, 2, 6) = $bar severity = 3 [Perl::Critic::Policy::BuiltinFunctions::ProhibitSleepViaSelect] # Use Time::HiRes instead of something like select(undef, undef, undef, .05) severity = 5 [Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval] # Write eval { my $foo; bar($foo) } instead of eval "my $foo; bar ($foo);" severity = 5 [Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalCan] # Write eval { $foo->can($name) } instead of UNIVERSAL::can($foo, $name) severity = 3 [Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa] # Write eval { $foo->isa($pkg) } instead of UNIVERSAL::isa($foo, $pkg) severity = 3 [Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep] # Write grep { $_ =~ /$pattern/ } @list instead of grep /$pattern/, @list severity = 4 [Perl::Critic::Policy::BuiltinFunctions::RequireBlockMap] # Write map { $_ =~ /$pattern/ } @list instead of map /$pattern/, @list severity = 4 [Perl::Critic::Policy::BuiltinFunctions::RequireGlobFunction] # Use glob q{*} instead of <*> severity = 5 [Perl::Critic::Policy::BuiltinFunctions::RequireSimpleSortBlock] # Sort blocks should have a single statement severity = 2 [Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA] # Employ use base instead of @ISA severity = 3 [Perl::Critic::Policy::ClassHierarchies::ProhibitOneArgBless] # Write bless {}, $class; instead of just bless {}; severity = 5 [Perl::Critic::Policy::CodeLayout::ProhibitHardTabs] # Use spaces instead of tabs. severity = 4 [Perl::Critic::Policy::CodeLayout::ProhibitParensWithBuiltins] # Write open $handle, $path instead of open($handle, $path) severity = 1 [Perl::Critic::Policy::CodeLayout::ProhibitQuotedWordLists] # Write qw(foo bar baz) instead of ('foo', 'bar', 'baz') severity = 2 [Perl::Critic::Policy::CodeLayout::RequireTidyCode] # Must run code through perltidy. severity = 4 [Perl::Critic::Policy::CodeLayout::RequireTrailingCommas] # Put a comma at the end of every multi-line list declaration, including the last one. severity = 3 [Perl::Critic::Policy::ControlStructures::ProhibitCStyleForLoops] # Write for(0..20) instead of for($i=0; $i<=20; $i++) severity = 3 [Perl::Critic::Policy::ControlStructures::ProhibitCascadingIfElse] # Don't write long "if-elsif-elsif-elsif-elsif...else" chains. severity = 3 [Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks] # Write if(! $condition) instead of unless($condition) severity = 4 [Perl::Critic::Policy::ControlStructures::ProhibitUnreachableCode] # Don't write code after an unconditional die, exit, or next. severity = 4 [Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks] # Write while(! $condition) instead of until($condition) severity = 4 [Perl::Critic::Policy::Documentation::RequirePodAtEnd] # All POD should be after __END__ severity = 2 [Perl::Critic::Policy::InputOutput::ProhibitBacktickOperators] # Discourage stuff like @files = `ls $directory` severity = 4 [Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles] # Write open my $fh, q{<}, $filename; instead of open FH, q{<}, $filename; severity = 5 [Perl::Critic::Policy::InputOutput::ProhibitOneArgSelect] # Never write select($fh) severity = 4 [Perl::Critic::Policy::InputOutput::ProhibitReadlineInForLoop] # Write while( $line = <> ){...} instead of for(<>){...} severity = 4 [Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen] # Write open $fh, q{<}, $filename; instead of open $fh, "<$filename"; severity = 5 [Perl::Critic::Policy::InputOutput::RequireBracedFileHandleWithPrint] # Write print {$FH} $foo, $bar; instead of print $FH $foo, $bar; severity = 3 [Perl::Critic::Policy::Miscellanea::ProhibitFormats] # Do not use format. severity = 3 [Perl::Critic::Policy::Miscellanea::ProhibitTies] # Do not use tie. severity = 4 [Perl::Critic::Policy::Modules::ProhibitAutomaticExportation] # Export symbols via @EXPORT_OK or %EXPORT_TAGS instead of @EXPORT. severity = 3 [Perl::Critic::Policy::Modules::ProhibitEvilModules] # Ban modules that aren't blessed by your shop. severity = 5 [Perl::Critic::Policy::Modules::ProhibitMultiplePackages] # Put packages (especially subclasses) in separate files. severity = 4 [Perl::Critic::Policy::Modules::RequireBarewordIncludes] # Write require Module instead of require 'Module.pm' severity = 5 [Perl::Critic::Policy::Modules::RequireEndWithOne] # End each module with an explicitly 1; instead of some funky expression. severity = 4 [Perl::Critic::Policy::Modules::RequireExplicitPackage] # Always make the package explicit. severity = 4 [Perl::Critic::Policy::NamingConventions::ProhibitAmbiguousNames] # Don't use vague variable or subroutine names like 'last' or 'record'. severity = 3 [Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs] # Write sub my_function{} instead of sub MyFunction{} severity = 4 [Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseVars] # Write $my_variable = 42 instead of $MyVariable = 42 severity = 4 [Perl::Critic::Policy::References::ProhibitDoubleSigils] # Write @{ $array_ref } instead of @$array_ref severity = 2 [Perl::Critic::Policy::RegularExpressions::RequireExtendedFormatting] # Always use the /x modifier with regular expressions. severity = 1 [Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching] # Always use the /m modifier with regular expressions. severity = 2 [Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils] # Don't call functions with a leading ampersand sigil. severity = 2 [Perl::Critic::Policy::Subroutines::ProhibitBuiltinHomonyms] # Don't declare your own open function. severity = 4 [Perl::Critic::Policy::Subroutines::ProhibitExcessComplexity] # Minimize complexity by factoring code into smaller subroutines. severity = 2 [Perl::Critic::Policy::Subroutines::ProhibitExplicitReturnUndef] # Return failure with bare return instead of return undef severity = 5 [Perl::Critic::Policy::Subroutines::ProhibitSubroutinePrototypes] # Don't write sub my_function (@@) {} severity = 5 [Perl::Critic::Policy::Subroutines::ProtectPrivateSubs] # Prevent access to private subs in other packages severity = 3 [Perl::Critic::Policy::Subroutines::RequireFinalReturn] # End every path through a subroutine with an explicit return statement. severity = 4 [Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict] # Prohibit various flavors of no strict severity = 1 [Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings] # Prohibit various flavors of no warnings severity = 4 [Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict] # Always use strict severity = 5 [Perl::Critic::Policy::TestingAndDebugging::RequireUseWarnings] # Always use warnings severity = 4 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma] # Don't use constant $FOO => 15 severity = 4 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes] # Write q{} instead of '' severity = 2 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitEscapedCharacters] # Write "\N{DELETE}" instead of "\x7F", etc. severity = 2 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitInterpolationOfLite rals] # Always use single quotes for literal strings. severity = 3 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros] # Write oct(755) instead of 0755 severity = 5 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitMixedBooleanOperato rs] # Write !$foo && $bar || $baz instead of not $foo && $bar or $baz severity = 4 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes] # Use q{} or qq{} instead of quotes for awkward-looking strings. severity = 2 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitVersionStrings] # Don't use strings like v1.4 or 1.4.5 when including other modules. severity = 3 [Perl::Critic::Policy::ValuesAndExpressions::RequireInterpolationOfMetac hars] # Warns that you might have used single quotes when you really wanted double-quotes. severity = 1 [Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators] # Write 141_234_397.0145 instead of 141234397.0145 severity = 2 [Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTermina tor] # Write print <<'THE_END' or print <<"THE_END" severity = 3 [Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerm inator] # Write <<'THE_END'; instead of <<'theEnd'; severity = 1 [Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations] # Do not write my $foo = $bar if $baz; severity = 5 [Perl::Critic::Policy::Variables::ProhibitLocalVars] # Use my instead of local, except when you have to. severity = 2 [Perl::Critic::Policy::Variables::ProhibitMatchVars] # Avoid $`, $&, $' and their English equivalents. severity = 4 [Perl::Critic::Policy::Variables::ProhibitPackageVars] # Eliminate globals declared with our or use vars severity = 1 [Perl::Critic::Policy::Variables::ProhibitPunctuationVars] # Write $EVAL_ERROR instead of $@ severity = 2 [Perl::Critic::Policy::Variables::ProtectPrivateVars] # Prevent access to private vars in other packages severity = 3 [Perl::Critic::Policy::Variables::RequireInitializationForLocalVars] # Write local $foo = $bar; instead of just local $foo; severity = 3 [-Perl::Critic::Policy::Documentation::RequirePodSections] # Organize your POD into the customary sections. [-Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls] # Write if($condition){ do_something() } instead of do_something() if $condition [-Perl::Critic::Policy::Miscellanea::RequireRcsKeywords] # Put RCS source-control keywords in every file. # BUT... may make sense to add my own SVN module for this... [-Perl::Critic::Policy::Modules::RequireVersionVar] # Give every module a $VERSION number. On Jan 17, 2007, at 4:22 PM, Jeffrey Thalhammer via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24005 > > > I think I found the cause of this problem. Did you have any policies > disabled in your ~/.perlcriticrc file at the time you were building > this? > > -Jeff
The last four policies in your config file... Show quoted text
> [-Perl::Critic::Policy::Documentation::RequirePodSections] > [-Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls] > [-Perl::Critic::Policy::Miscellanea::RequireRcsKeywords] > [-Perl::Critic::Policy::Modules::RequireVersionVar]
...are prepended with a "-" which means you have globally disabled them. In most of the test scripts, we've rigged Perl::Critic to ignore your .perlcriticrc file to prevent it from interfering with the tests. But we neglected to do that in the 13_bundled_policies.t. I'll fix this in the next release. Thanks for helping us get to the bottom of this! -Jeff