On Thu Jun 28 07:22:38 2007, pcoch wrote: > 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 > } > > Such that the option of *not* allowing leading tabs is passed on to > perlcritic. > > Regards, > > Paul
Rejected. New version of t/codingstd/perlcritic.t (r28839) now uses the standard perlcritic.conf file as the way to set options on various policies. -- Will "Coke" Coleda