NAME

Perl::Critic::Policy::Dancer2::ReturnNotNecessary - Trigger perlcritic alerts on needless return statements

VERSION

version 0.4100

DESCRIPTION

Certain Dancer2 keywords immediately end execution of a route; specifically, using forward, halt, pass, redirect, send_as, send_error, or send_file, do not require a return before them, as they do so implicitly.

AFFILIATION

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

CONFIGURATION

This Policy is not configurable except for the standard options.

AUTHOR

D Ruth Holloway <ruth@hiruthie.me>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by D Ruth Holloway.

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