Skip to content

yewtc/Perl-Critic-RENEEB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Kwalitee status GitHub issues

NAME

Perl::Critic::RENEEB - A collection of handy Perl::Critic policies

VERSION

version 2.05

SYNOPSIS

Perl::Critic::RENEEB is a collection of Perl::Critic policies that is used in my programming environment

DESCRIPTION

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})

Development

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

AUTHOR

Renee Baecker reneeb@cpan.org

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 99.1%
  • Raku 0.9%