Skip Menu |
 

This queue is for tickets about the Perl-MinimumVersion CPAN distribution.

Report information
The Basics
Id: 87883
Status: open
Priority: 0/
Queue: Perl-MinimumVersion

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: feature request: a mechanism to exempt snippets of code from a check
Download (untitled) / with headers
text/plain 524b
Moose documents its minimum version as perl 5.8.3 and strives to not exceed that. Moose::Util::TypeConstraints (line 623 currently) has some conditional code that uses 5.10+ regex syntax if we are running on 5.10+, but falls back to a 5.8-compliant version otherwise. It would be nice if we could mark the 5.10-requiring section of code as "do not check this for minimum version", so we can still use the [MinimumPerl] or [Test::MinimumVersion] dzil plugins for Moose development and not get a false negative on this code.
On Thu Aug 15 14:29:31 2013, ETHER wrote: Show quoted text
> Moose documents its minimum version as perl 5.8.3 and strives to not > exceed that. Moose::Util::TypeConstraints (line 623 currently) has > some conditional code that uses 5.10+ regex syntax if we are running > on 5.10+, but falls back to a 5.8-compliant version otherwise. > > It would be nice if we could mark the 5.10-requiring section of code > as "do not check this for minimum version", so we can still use the > [MinimumPerl] or [Test::MinimumVersion] dzil plugins for Moose > development and not get a false negative on this code.
YES! I just stumbled on a similar problem with Template Toolkit (https://rt.cpan.org/Ticket/Display.html?id=102391) where the explicit version is 5.6 but there is a 5.8+ binmode call that only happens on 5.8+. Devel::Cover offers a similar construct for exemptions, we could use something like: binmode $fh, ':utf8'; # no perlver and it would skip that line for the check. Or even something like: binmode $fh, ':utf8'; # perlver 5.8 and it would check against the specified version (and up). How does it look?


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.