Perl-Critic-Policy-Moo-ProhibitMakeImmutable

Makes sure that Moo classes do not contain calls to make_immutable. (DEPRECATED)


Keywords
cpan, perl5
License
Artistic-1.0-Perl

Documentation

NAME

Perl::Critic::Policy::Moo::ProhibitMakeImmutable - Makes sure that Moo classes do not contain calls to make_immutable. (DEPRECATED)

DESCRIPTION

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.

DEPRECATED

This module has lost its usefulness as Moo's behavior is now clearly documented as NOT loading Moose when make_immutable is called.

Read more about the "meta" in Moo method for details of the current behavior.

AUTHORS

Aran Clary Deltac <bluefeet@gmail.com>
Kivanc Yazan <kyzn@users.noreply.github.com>
Graham TerMarsch <graham@howlingfrog.com>

ACKNOWLEDGEMENTS

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.

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.