Login
Added new policy: ProhibitReturnSort, as suggested by Ulrich Wisser.
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Mon, 24 Nov 2008 05:06:47 +0000 (05:06 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Mon, 24 Nov 2008 05:06:47 +0000 (05:06 +0000)
commit2c019035d36fa5766227575befc068d7ed8ef1ef
tree0ff5dbb4f64844da20c492bdbfc27ccbee95e23c
parent4e8969da03c64123ab2b264af94564548cf6d8e6
Added new policy: ProhibitReturnSort, as suggested by Ulrich Wisser.

I hadn't anticipated the problem with false-positives due to wantarray().
I don't know if this issue is a release-blocker.  What do you think?
Changes
lib/Perl/Critic/Policy.pm
lib/Perl/Critic/Policy/Subroutines/ProhibitReturnSort.pm [new file with mode: 0644]
lib/Perl/Critic/PolicyFactory.pm
lib/Perl/Critic/TestUtils.pm
t/Subroutines/ProhibitReturnSort.run [new file with mode: 0644]