Login
RT #38942: RegularExpressions::ProhibitUnusedCapture false positive
authorTom Wyant <harryfmudd@comcast.net>
Sat, 26 Feb 2011 23:17:50 +0000 (23:17 +0000)
committerTom Wyant <harryfmudd@comcast.net>
Sat, 26 Feb 2011 23:17:50 +0000 (23:17 +0000)
commit48ccbca9369641a93a6ef5b6171575187b23a9ff
tree8945a414855c0325a6a106b8de8518e9d6458a99
parent494325b2c21901ced13f534038c90d99da2657da
RT #38942: RegularExpressions::ProhibitUnusedCapture false positive

This has become a bit of a catch-all ticket.

This commit deals with the case where the capture variables are hiding
in an interpolation.

The ticket needs to remain open because of the '/(a)/ or /(b)/' case.
Changes
lib/Perl/Critic/Policy/RegularExpressions/ProhibitUnusedCapture.pm
t/RegularExpressions/ProhibitUnusedCapture.run