Perl::Critic::Policy::Moo::ProhibitMakeImmutable - Makes sure that Moo classes do not contain calls to make_immutable.
When migrating from Moose to Moo it can be a common issue to accidentally leave in:
__PACKAGE__->meta->make_immutable;
This policy complains if this exists in a Moo class as it triggers Moose to be loaded and metaclass created, which defeats some of the benefits you get using Moo instead of Moose.
Aran Clary Deltac <bluefeet@gmail.com> Kivanc Yazan <kyzn@users.noreply.github.com> Graham TerMarsch <graham@howlingfrog.com>
Thanks to ZipRecruiter for encouraging their employees to contribute back to the open source ecosystem. Without their dedication to quality software development this distribution would not exist.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Perl::Critic::Policy::Moo::ProhibitMakeImmutable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Policy::Moo::ProhibitMakeImmutable
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Policy::Moo::ProhibitMakeImmutable
For more information on module installation, please visit the detailed CPAN module installation guide.