NAME

Perl::Critic::Lokku - A collection of Perl::Critic policies from Lokku

VERSION

version 0.003

SYNOPSIS

A collection of policies that we created at Lokku, have a look at each one to see if you could use any.

DESCRIPTION

This distribution only contains policies that check for gotchas about Try::Tiny.

ABANDONED

This distribution is abandoned. Please do not expect to see any updates. The code is is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Please feel free to copy this code and release it yourself, just don't use the Lokku name.

TryTiny policies

Perl::Critic::Policy::TryTiny::RequireCatch

Did you know that try { ... } finally { ... } suppresses all errors? This policy will require you to include a catch block, even if it's only empty.

Perl::Critic::Policy::TryTiny::ProhibitExitingSubroutine

Did you know that next inside a try block will exit that block, not the surrounding loop? This policy will require you use a label at least, and that you avoid return altogether.

SEE ALSO

AUTHOR

David D Lowe <flimm@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Lokku <cpan@lokku.com>.

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