Paul Cochrane (via RT) schrieb:
# New Ticket Created by Paul Cochrane
# Please include the string: [perl #43413]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=43413 >
Hi,
In perlcritic.t i'd like to find a way to pass options to perlcritic
policies from the command line. Options are passed as anonymous
hashes. Basically, we want to be able to do something like:
perl t/codingstd/perlcritic.t --list
--policy=CodeLayout::ProhibitHardTabs=>{'allow_leading_tabs'=>0}
and it to give the output:
CodeLayout::ProhibitHardTabs => \{
'allow_leading_tabs' => 0
}
Isn't that reimplementing 'perlcritic' ?
If somebody wants to work on satisfying a new policy one can set up a
my_perlcriticrc file and call
perlcritic --profile my_perlcriticrc
Another question. Can we simplify perlcritic.t by using Test::Perl::Critic?
Just my $0.02,
Bernhard