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

%sorters list in DollarAB does not have 'pairwise' #21

Closed jemmix closed 8 years ago

jemmix commented 8 years ago

Thank you for a very useful policy of DollarAB, it is very helpful, let us catch a couple potential bugs in our codebase.

There's a caveat though- we're using pairwise in our code, and DollarAB complains about it. pairwise is exported by List::MoreUtils and List::AllUtils — granted, there's another policy that discourages using List::MoreUtils but getting rid of that dependency is not feasible for us at this time.

Can you please either add pairwise to the list, or, better yet, make the policy extensible so that the users could redefine the 'list of sorters' to suit their needs?

Thanks!

Grinnz commented 8 years ago

Good idea, I'll see what I can do

Grinnz commented 8 years ago

Fixed in 0.014