Dist::Zilla::Plugin::Test::CleanNamespaces - Generate a test to check that all namespaces are clean
version 0.006
In your dist.ini:
[Test::CleanNamespaces] skip = ::Dirty$
This is a Dist::Zilla plugin that runs at the gather files stage, providing a test file (configurable, defaulting to xt/author/clean-namespaces.t).
This test will scan all modules in your distribution and check that their namespaces are "clean" -- that is, that there are no remaining imported subroutines from other modules that are now callable as methods at runtime.
You can fix this in your code with namespace::clean or namespace::autoclean.
The name of the generated test. Defaults to xt/author/clean-namespaces.t.
A regular expression describing a module name that should not be checked. Can be used more than once.
use of a configurable FileFinder for finding
source files to check (depends on changes planned in Test::CleanNamespaces)
Bugs may be submitted through the RT bug tracker (or bug-Dist-Zilla-Plugin-Test-CleanNamespaces@rt.cpan.org). I am also usually active on irc, as 'ether' at irc.perl.org.
irc.perl.org
Test::CleanNamespaces
namespace::clean
namespace::autoclean
namespace::sweep
Sub::Exporter::ForMethods
Sub::Name
Sub::Install
MooseX::MarkAsMethods
Karen Etheridge <ether@cpan.org>
This software is copyright (c) 2014 by Karen Etheridge.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::Test::CleanNamespaces, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Test::CleanNamespaces
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Test::CleanNamespaces
For more information on module installation, please visit the detailed CPAN module installation guide.