The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Perl::Critic::Policy::Mardem::ProhibitReturnBooleanAsInt

DESCRIPTION

This Policy searches for return 1 and return 0 statements, which are mainly used for boolean meaning, but are less expressiv than direct use of some boolean eg. return $true.

There are many different modules available for true, false - use it!

CONFIGURATION

No Configuration

AFFILIATION

This policy is part of Perl::Critic::Mardem.

AUTHOR

Markus Demml, mardem@cpan.com

LICENSE AND COPYRIGHT

Copyright (c) 2022, Markus Demml

This library is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. The full text of this license can be found in the LICENSE file included with this module.