Perl::Critic::Policy::Dancer2::ReturnNotNecessary - Trigger perlcritic alerts on needless return statements
version 0.4100
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.
forward
halt
pass
redirect
send_as
send_error
send_file
return
This policy is part of Perl::Critic::Dancer2.
This Policy is not configurable except for the standard options.
D Ruth Holloway <ruth@hiruthie.me>
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.
To install Perl::Critic::Dancer2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Dancer2
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Dancer2
For more information on module installation, please visit the detailed CPAN module installation guide.