Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Test-Perl-Critic CPAN distribution.

Report information
The Basics
Id: 101821
Status: rejected
Priority: 0/
Queue: Dist-Zilla-Plugin-Test-Perl-Critic

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

Bug Information
Severity: (no value)
Broken in: 2.112410
Fixed in: (no value)



Subject: It appears to be ignoring the perlcritic.rc file
When I use the following: perlcritic -p perlcritic.rc lib it passes the Perl critic tests. But when I run "dzil test", it fails them because it ignores settings in the perlcritic.rc file. Explicitly setting the location of the file, or moving it to an alternative location, does not help. I suspect that is because the file is not where it thinks the file is. (Because the test script ignores the perlcritic.rc if it can't find it, it does not indicate that there is an problem.)
Some further tests suggest the issue is with Dist::Zilla and Test::Perl::Critic, but not the plugin. I've tried adding a simple Test::Perl::Critic script and gotten the same issue. Adding nonsense to the perlcritic.rc file shows errors, so when it's run in Dist::Zilla, it's definitely picking up the correct rc file. The problem seems to be that it's ignoring settings when run in Dist::Zilla.