Test::Perl::Lint - A testing module to analyze your Perl code with Perl::Lint
use Test::Perl::Lint; all_policies_ok({ targets => ['lib', 'script/bar.pl'], ignore_files => ['lib/Foo/Buz.pm', 'lib/Foo/Qux.pm'], filter => ['LikePerlCritic::Stern'], ignore_policies => ['Modules::RequireVersionVar'], });
A testing module to analyze your Perl code with Perl::Lint.
all_policies_ok($args:HASHREF)
This function tests your codes whether they conform to the policies. $args accepts following fields;
$args
THIS FIELD IS ESSENTIAL.
Specify targets to test. If you specify directory as an item, this function checks the all of files which are contained in that directory.
Specify files to exclude from testing target.
Apply Perl::Lint filters.
Specify policies to ignore violations.
Perl::Lint
Copyright (C) moznion.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
moznion <moznion@gmail.com>
To install Perl::Lint, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Lint
CPAN shell
perl -MCPAN -e shell install Perl::Lint
For more information on module installation, please visit the detailed CPAN module installation guide.