-
-
30 Aug 2014 01:34:54 UTC
- Distribution: Dist-Zilla-Plugin-Test-CleanNamespaces
- Module version: 0.006
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (4552 / 3 / 0)
- Kwalitee
Bus factor: 1- 89.29% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (26.46KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Dist::Zilla::File::InMemory
- Dist::Zilla::Role::FileGatherer
- Dist::Zilla::Role::FileMunger
- Dist::Zilla::Role::PrereqSource
- Dist::Zilla::Role::TextTemplate
- Moose
- Moose::Util::TypeConstraints
- MooseX::Types::Stringlike
- Path::Tiny
- namespace::autoclean
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- CONFIGURATION OPTIONS
- TO DO (or: POSSIBLE FEATURES COMING IN FUTURE RELEASES)
- SUPPORT
- SEE ALSO
- AUTHOR
- COPYRIGHT AND LICENSE
NAME
Dist::Zilla::Plugin::Test::CleanNamespaces - Generate a test to check that all namespaces are clean
VERSION
version 0.006
SYNOPSIS
In your dist.ini:
[Test::CleanNamespaces] skip = ::Dirty$
DESCRIPTION
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.
CONFIGURATION OPTIONS
filename
The name of the generated test. Defaults to xt/author/clean-namespaces.t.
skip
A regular expression describing a module name that should not be checked. Can be used more than once.
TO DO (or: POSSIBLE FEATURES COMING IN FUTURE RELEASES)
use of a configurable FileFinder for finding
source files to check (depends on changes planned in Test::CleanNamespaces)
SUPPORT
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
.SEE ALSO
AUTHOR
Karen Etheridge <ether@cpan.org>
COPYRIGHT AND LICENSE
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.
Module Install Instructions
To install Dist::Zilla::Plugin::Test::CleanNamespaces, copy and paste the appropriate command in to your terminal.
cpanm Dist::Zilla::Plugin::Test::CleanNamespaces
perl -MCPAN -e shell install Dist::Zilla::Plugin::Test::CleanNamespaces
For more information on module installation, please visit the detailed CPAN module installation guide.