1Perl::Critic::Policy::MUosoesreP:Ce:orRnlet:qr:uiCibrruiettMeiadck:eP:IePmromlluitDcaoybc:lu:emM(eo3no)tsaet:i:oRnequireMakeImmutable(3)
2
3
4

NAME

6       Perl::Critic::Policy::Moose::RequireMakeImmutable - Ensure that you've
7       made your Moose code fast
8

VERSION

10       version 1.05
11

DESCRIPTION

13       Moose is very flexible. That flexibility comes at a performance cost.
14       You can ameliorate some of that cost by telling Moose when you are done
15       putting your classes together.
16
17       Thus, if you "use Moose", this policy requires that you do
18       "__PACKAGE__->meta()->make_immutable()".
19

AFFILIATION

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

CONFIGURATION

24       There is a single option, "equivalent_modules". This allows you to
25       specify modules that should be treated the same as Moose and
26       Moose::Role, if, say, you were doing something with Moose::Exporter.
27       For example, if you were to have this in your .perlcriticrc file:
28
29           [Moose::RequireMakeImmutable]
30           equivalent_modules = MyCompany::Moose MooseX::NewThing
31
32       then the following code would result in a violation:
33
34           package Baz;
35
36           use MyCompany::Moose;
37
38           sub new {
39               ...
40           }
41
42           # no make_immutable call
43

SUPPORT

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

AUTHORS

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