Login
The Perl::Critic::Violation source() method (and therefore the %r
authorTom Wyant <harryfmudd@comcast.net>
Mon, 25 Jul 2011 00:16:10 +0000 (00:16 +0000)
committerTom Wyant <harryfmudd@comcast.net>
Mon, 25 Jul 2011 00:16:10 +0000 (00:16 +0000)
commit651a370ea73ec7aadd75c9e25dd0ae04b231a1c3
treefef73f952d77e2379a18681cca7b529960dc8e9c
parent22bc48dbf3b712ecf4772ef63bc6ce2900fc4839
The Perl::Critic::Violation source() method (and therefore the %r
format) now handles multi-line statements by returning the line of the
statement that contains the violation. Or at least, tries very hard to.
The previous version returned the first line, whether or not it
contained the violation.
Changes
lib/Perl/Critic/Violation.pm