NAME

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

VERSION

version 0.002

SYNOPSIS

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

DESCRIPTION

Currently, this distribution only contains policies that check for gotchas about Try::Tiny.

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) 2015 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.