Perl::Critic::RENEEB - A collection of handy Perl::Critic policies
version 2.05
Perl::Critic::RENEEB is a collection of Perl::Critic policies that is used in my programming environment
The rules included with the Perl::Critic::RENEEB group include:
I use split with regular expressions regularly, but I don't want to use the x-modifier there. So I wrote this policy to check all regular expressions in my programs but those used as a parameter to split.
Use try{...}
from Try::Tiny instead of eval{...}
.
Checks for capitalization of package names, subroutines, etc. It's a subclass of
Perl::Critic::Policy::NamingConventions::Capitalization, but it adds the parameter
full_qualified_package_exemptions
to exclude packages by "full qualified namespace".
full_qualified_package_exemptions = Test::Command::.*
excludes all packages in the Test::Command::
namespace from the check.
Use List::Utils 'first' instead of grep if you want to get the first found element
Use postderef (e.g. $ref->@*) instead of the "old" dereferencing (e.g. @{$ref})
The distribution is contained in a Git repository, so simply clone the repository
$ git clone https://github.com/reneeb/Perl-Critic-RENEEB.git
and change into the newly-created directory.
$ cd Perl-Critic-RENEEB
The project uses Dist::Zilla
to
build the distribution, hence this will need to be installed before
continuing:
$ cpanm Dist::Zilla
To install the required prequisite packages, run the following set of commands:
$ dzil authordeps --missing | cpanm
$ dzil listdeps --author --missing | cpanm
The distribution can be tested like so:
$ dzil test
To run the full set of tests (including author and release-process tests),
add the --author
and --release
options:
$ dzil test --author --release
Renee Baecker [email protected]
This software is Copyright (c) 2015 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)