NAME
Perl::Critic::Lokku - A collection of Perl::Critic policies from Lokku
VERSION
version 0.001
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 { ... }
suppresse all errors? This policy will require you to include a catch
block, even if it's only empty.
Perl::Critic::Policy::TryTiny::ProhibitExitSubroutine
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) 2014 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.