Subject: | Perl::Critic 1.082 with perl 5.10: RequireNoMatchVarsWithUseEnglish false positives |
Date: | Wed, 19 Mar 2008 13:15:03 -0700 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Ryan D Johnson <ryandjohnson [...] gmail.com> |
I tried to figure out how to reproduce this with the tests in the
distro, but I'm afraid I had trouble understanding how they worked and
which ones were or weren't running. In any case, I couldn't get them to
fail.
Please let me know what I can do to help troubleshoot.
Here's at least a shell transcript showing a failure:
$ perlcritic -profile .PerlySenseProject/.perlcritic t/05jslint.t
"use English" without '-no_match_vars' argument at line 9, column 1. "use English" without the '-no_match_vars' argument degrades performance.'. (Severity: 2)
$ grep English t/05jslint.t
use English '-no-match-vars';
$ perl -MPerl::Critic\ 9999
Perl::Critic version 9999 required--this is only version 1.082.
BEGIN failed--compilation aborted.
$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.22-14-generic, archname=i686-linux
uname='linux host 2.6.22-14-generic #1 smp tue feb 12 07:42:25 utc 2008 i686 gnulinux '
config_args='-des -Dprefix=/home/ryan/localperl'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.6.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.6.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Mar 12 2008 01:41:42
@INC:
/home/ryan/localperl/lib/5.10.0/i686-linux
/home/ryan/localperl/lib/5.10.0
/home/ryan/localperl/lib/site_perl/5.10.0/i686-linux
/home/ryan/localperl/lib/site_perl/5.10.0
$ which perlcritic
/home/ryan/localperl/bin/perlcritic