NAME

Perl::Critic::Policy::Mardem::ProhibitReturnBooleanAsInt - return boolean as int "return 1;"

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) 2024, 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.