1Perl::Critic::Policy::MUosoesrPee:Cr:olRn:et:qrCuiribirutetiCecld:e:aPPneoNrlalimceDyso:pc:auMcmoeeo(ns3te)a:t:iRoenquireCleanNamespace(3)
2
3
4

NAME

6       Perl::Critic::Policy::Moose::RequireCleanNamespace - Require removing
7       implementation details from you packages.
8

VERSION

10       version 1.05
11

DESCRIPTION

13       Anything in your namespace is part of your interface. The Moose sugar
14       is an implementation detail and not part of what you want to support as
15       part of your functionality, especially if you may change your
16       implementation to not use Moose in the future. Thus, this policy
17       requires you to say "no Moose;" or "no Moose::Role;", etc. as
18       appropriate for modules you "use".
19

AFFILIATION

21       This policy is part of Perl::Critic::Moose.
22

CONFIGURATION

24       By default, this module will complain if you "use" Moose, Moose::Role,
25       or "Moose::Util::TypeConstraints" but don't unimport them. You can set
26       the modules looked for using the "modules" option.
27
28           [Moose::RequireCleanNamespace]
29           modules = Moose Moose::Role Moose::Util::TypeConstraints MooseX::My::New::Sugar
30
31       This module also knows that namespace::autoclean will clean out
32       imports. If you'd like to allow other modules to be recognized as
33       namespace cleaners, you can set the "cleaners" option.
34
35           [Moose::RequireCleanNamespace]
36           cleaners = My::Cleaner
37
38       If you use "use" a module with an empty import list, then this module
39       knows that nothing needs to be cleaned, and will ignore that particular
40       import.
41

SEE ALSO

43       Moose::Manual::BestPractices
44

SUPPORT

46       Bugs may be submitted through the RT bug tracker
47       <http://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Critic-Moose>
48       (or bug-perl-critic-moose@rt.cpan.org <mailto:bug-perl-critic-
49       moose@rt.cpan.org>).
50
51       I am also usually active on IRC as 'drolsky' on "irc://irc.perl.org".
52

AUTHORS

54       ·   Elliot Shank <perl@galumph.com>
55
56       ·   Dave Rolsky <autarch@urth.org>
57
59       This software is copyright (c) 2008 - 2016 by Elliot Shank.
60
61       This is free software; you can redistribute it and/or modify it under
62       the same terms as the Perl 5 programming language system itself.
63
64
65
66perl v5.32.0             Perl::Cri2t0i2c0:-:0P7o-l2i8cy::Moose::RequireCleanNamespace(3)
Impressum