Grinnz / Perl-Critic-Community

Perl::Critic::Community - Community-inspired Perl::Critic policies
https://metacpan.org/pod/Perl::Critic::Community
Other
8 stars 10 forks source link

Specifying freenode as the theme in .perlcriticrc doesn't work #22

Closed pink-mist closed 8 years ago

pink-mist commented 8 years ago

When I put theme = freenode in .perlcriticrc I get an error message from perlcritic stating No policies selected. and exiting with error-code 255.

Shell session showing the issue:

[0]suppy@celestia:~/work/sbotools$ cat .perlcriticrc
theme = freenode
[0]suppy@celestia:~/work/sbotools$ perlcritic SBO-Lib/lib/SBO/Lib.pm
No policies selected.
[255]suppy@celestia:~/work/sbotools$ perlcritic --theme freenode SBO-Lib/lib/SBO/Lib.pm
SBO-Lib/lib/SBO/Lib.pm source OK
[0]suppy@celestia:~/work/sbotools$ env | grep -i perl
PERL5LIB=/home/suppy/perl5/lib/perl5
PERL_MB_OPT=--install_base "/home/suppy/perl5"
PATH=/home/suppy/perl5/bin:/home/suppy/.commands/:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin
PERL_LOCAL_LIB_ROOT=/home/suppy/perl5
PERL_MM_OPT=INSTALL_BASE=/home/suppy/perl5
[0]suppy@celestia:~/work/sbotools$
Grinnz commented 8 years ago

From the perl-critic bug, additionally specify severity = 1 to load all policies from the theme, this will be fixed.