Skip Menu |

This queue is for tickets about the Test-CleanNamespaces CPAN distribution.

Report information
The Basics
Id: 74708
Status: resolved
Priority: 0/
Queue: Test-CleanNamespaces

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

Bug Information
Severity: Wishlist
Broken in: 0.03
Fixed in: 0.09-TRIAL



Subject: all_namespaces_clean should ignore non-Moose classes
Consider the problem described in https://rt.cpan.org/Ticket/Display.html?id=74569 -- should all_namespaces_clean(); then ignore all non-Moose classes/packages? Otherwise, it is not possible to use all_namespaces_clean (and its associated dzil plugin for release testing) for any distribution that has any non-Moose packages.
On Sun Feb 05 13:06:14 2012, ETHER wrote: Show quoted text
> Consider the problem described in > https://rt.cpan.org/Ticket/Display.html?id=74569 -- should > all_namespaces_clean(); then ignore all non-Moose classes/packages?
...No, but it *should* ignore packages that deliberately export things. (This requires a heuristic to differentiate two types of packages: "I contain subs that are expected to be called as methods, and don't export things", and "I am a collection of functions and I export things." On the former we want to run namespace::(auto)?clean; on the latter, we don't.
Now implemented in 0.09 \o/